[Bf-blender-cvs] [3af3e77e675] grab_walk_fix: Cleanup
Nicholas Rishel
noreply at git.blender.org
Mon Sep 6 05:20:27 CEST 2021
Commit: 3af3e77e67520570aff501a5014dd8c2553f8c0d
Author: Nicholas Rishel
Date: Sun Sep 5 16:41:33 2021 -0700
Branches: grab_walk_fix
https://developer.blender.org/rB3af3e77e67520570aff501a5014dd8c2553f8c0d
Cleanup
===================================================================
M intern/ghost/intern/GHOST_SystemWin32.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index e79c5e0ce0a..56432bf2c2e 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -127,10 +127,9 @@ static void initRawInput()
devices[1].usUsage = 0x08;
#endif
- if (RegisterRawInputDevices(devices, DEVICE_COUNT, sizeof(RAWINPUTDEVICE)))
- ; // yay!
- else
+ if (!RegisterRawInputDevices(devices, DEVICE_COUNT, sizeof(RAWINPUTDEVICE))) {
GHOST_PRINTF("could not register for RawInput: %d\n", (int)GetLastError());
+ }
#undef DEVICE_COUNT
}
More information about the Bf-blender-cvs
mailing list