Fix C89_BUILD

This commit is contained in:
twinaphex 2017-12-27 21:49:56 +01:00
parent 12aa454d54
commit b10616ffb7

View File

@ -751,6 +751,7 @@ bool win32_window_create(void *data, unsigned style,
RECT *mon_rect, unsigned width, RECT *mon_rect, unsigned width,
unsigned height, bool fullscreen) unsigned height, bool fullscreen)
{ {
DEV_BROADCAST_DEVICEINTERFACE notification_filter;
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();
#ifndef _XBOX #ifndef _XBOX
main_window.hwnd = CreateWindowEx(0, main_window.hwnd = CreateWindowEx(0,
@ -763,7 +764,6 @@ bool win32_window_create(void *data, unsigned style,
if (!main_window.hwnd) if (!main_window.hwnd)
return false; return false;
DEV_BROADCAST_DEVICEINTERFACE notification_filter;
ZeroMemory( &notification_filter, sizeof(notification_filter) ); ZeroMemory( &notification_filter, sizeof(notification_filter) );
notification_filter.dbcc_size = sizeof(DEV_BROADCAST_DEVICEINTERFACE); notification_filter.dbcc_size = sizeof(DEV_BROADCAST_DEVICEINTERFACE);
notification_filter.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE; notification_filter.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE;