diff --git a/gfx/common/win32_common.c b/gfx/common/win32_common.c index 2b3ca65af7..ab37d7ab1e 100644 --- a/gfx/common/win32_common.c +++ b/gfx/common/win32_common.c @@ -810,7 +810,7 @@ bool win32_window_create(void *data, unsigned style, notification_handler = RegisterDeviceNotification( main_window.hwnd, ¬ification_filter, DEVICE_NOTIFY_WINDOW_HANDLE); - if (notification_handler) + if (!notification_handler) RARCH_ERR("Error registering for notifications\n"); #endif