diff --git a/gfx/common/win32_common.c b/gfx/common/win32_common.c index d33ea925da..e03df00404 100644 --- a/gfx/common/win32_common.c +++ b/gfx/common/win32_common.c @@ -751,6 +751,7 @@ bool win32_window_create(void *data, unsigned style, RECT *mon_rect, unsigned width, unsigned height, bool fullscreen) { + DEV_BROADCAST_DEVICEINTERFACE notification_filter; settings_t *settings = config_get_ptr(); #ifndef _XBOX main_window.hwnd = CreateWindowEx(0, @@ -763,7 +764,6 @@ bool win32_window_create(void *data, unsigned style, if (!main_window.hwnd) return false; - DEV_BROADCAST_DEVICEINTERFACE notification_filter; ZeroMemory( ¬ification_filter, sizeof(notification_filter) ); notification_filter.dbcc_size = sizeof(DEV_BROADCAST_DEVICEINTERFACE); notification_filter.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE;