Make RegisterDeviceNotificationW behave like RegisterDeviceNotificationA

Martin Profittlich (none) martin at martin-desktop.
Wed Aug 6 15:41:17 CDT 2008


---
 dlls/user32/misc.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/misc.c b/dlls/user32/misc.c
index 65176e3..f91be62 100644
--- a/dlls/user32/misc.c
+++ b/dlls/user32/misc.c
@@ -564,8 +564,9 @@ HDEVNOTIFY WINAPI RegisterDeviceNotificationA(HANDLE hnd, LPVOID notifyfilter, D
  */
 HDEVNOTIFY WINAPI RegisterDeviceNotificationW(HANDLE hRecepient, LPVOID pNotificationFilter, DWORD dwFlags)
 {
-    FIXME("(hwnd=%p, filter=%p,flags=0x%08x), STUB!\n", hRecepient,pNotificationFilter,dwFlags );
-    return 0;
+    FIXME("(hwnd=%p, filter=%p,flags=0x%08x),\n"
+          "\treturns a fake device notification handle!\n", hRecepient,pNotificationFilter,dwFlags );
+    return (HDEVNOTIFY) 0xcafeaffe;
 }
 
 /***********************************************************************
-- 
1.5.4.3


--========GMX203091218056731943482--



More information about the wine-patches mailing list