- Fix crash in wine input test.
authorJames Tabor <james.tabor@reactos.org>
Mon, 23 Nov 2015 20:22:03 +0000 (20:22 +0000)
committerJames Tabor <james.tabor@reactos.org>
Mon, 23 Nov 2015 20:22:03 +0000 (20:22 +0000)
svn path=/trunk/; revision=70073

reactos/win32ss/user/user32/misc/stubs.c

index 61f0fa2..aa7e75e 100644 (file)
@@ -335,7 +335,8 @@ GetRawInputDeviceList(
 {
     if(pRawInputDeviceList)
         memset(pRawInputDeviceList, 0, sizeof *pRawInputDeviceList);
-    *puiNumDevices = 0;
+    if(puiNumDevices)
+       *puiNumDevices = 0;
 
     UNIMPLEMENTED;
     return 0;