MSVC Buildfix - (#11913)

* Declare variables at the top of a function in C code
This commit is contained in:
Autechre 2021-01-21 02:59:14 +01:00 committed by GitHub
parent 630dbdd85c
commit 47784c66f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,11 +79,10 @@ static void task_wifi_disable_handler(retro_task_t *task)
static void task_wifi_disconnect_handler(retro_task_t *task)
{
wifi_network_info_t netinfo;
if (!task)
return;
wifi_network_info_t netinfo;
if (driver_wifi_connection_info(&netinfo))
driver_wifi_disconnect_ssid(&netinfo);
@ -105,7 +104,7 @@ static void task_wifi_connect_handler(retro_task_t *task)
bool task_push_wifi_connect(retro_task_callback_t cb, void *netptr) {
char msg[128];
retro_task_t *task = task_init();
retro_task_t *task = task_init();
wifi_network_info_t *netinfo = (wifi_network_info_t*)netptr;
if (!task)
return false;