Update rpcs3/rpcs3qt/gui_application.cpp

Co-authored-by: Megamouse <studienricky89@googlemail.com>
This commit is contained in:
Sanjay Govind 2025-01-24 09:07:52 +13:00 committed by GitHub
parent ad616a5cdd
commit c748d3cc81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -213,6 +213,10 @@ bool gui_application::Init()
notification_filter.dbcc_classguid = GUID_DEVINTERFACE_USB_DEVICE;
m_device_notification_handle = RegisterDeviceNotification(reinterpret_cast<HWND>(m_main_window->winId()), &notification_filter, DEVICE_NOTIFY_WINDOW_HANDLE);
if (!m_device_notification_handle )
{
gui_log.error("RegisterDeviceNotification() failed: %s", fmt::win_error{GetLastError(), nullptr});
}
#endif
return true;