From 7772f9724172e8f0ab37c4e75bb6270b2fd8f6f4 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sat, 11 Apr 2020 17:58:38 -0500 Subject: [PATCH] [User32] Return Default Window Procedure for WM_DEVICECHANGE See CORE-16492. --- win32ss/user/ntuser/defwnd.c | 3 +++ win32ss/user/user32/windows/defwnd.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/win32ss/user/ntuser/defwnd.c b/win32ss/user/ntuser/defwnd.c index 241d1c6e3ed..4bfe24e3d55 100644 --- a/win32ss/user/ntuser/defwnd.c +++ b/win32ss/user/ntuser/defwnd.c @@ -547,6 +547,9 @@ IntDefWindowProc( switch (Msg) { + case WM_DEVICECHANGE: + return TRUE; + case WM_GETTEXTLENGTH: { PWSTR buf; diff --git a/win32ss/user/user32/windows/defwnd.c b/win32ss/user/user32/windows/defwnd.c index baa31e7af0a..9171d0f693b 100644 --- a/win32ss/user/user32/windows/defwnd.c +++ b/win32ss/user/user32/windows/defwnd.c @@ -328,6 +328,9 @@ User32DefWindowProc(HWND hWnd, switch (Msg) { + case WM_DEVICECHANGE: + return TRUE; + case WM_POPUPSYSTEMMENU: { /* This is an undocumented message used by the windows taskbar to