Marcus Meissner : dinput: No need for null ptr check of pKeyboard.

Alexandre Julliard julliard at winehq.org
Mon Sep 3 13:19:15 CDT 2012


Module: wine
Branch: master
Commit: 439605634e193ba0147058afc40b2d15c2fce7e5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=439605634e193ba0147058afc40b2d15c2fce7e5

Author: Marcus Meissner <meissner at suse.de>
Date:   Mon Sep  3 19:02:54 2012 +0200

dinput: No need for null ptr check of pKeyboard.

---

 dlls/dinput/tests/keyboard.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/dinput/tests/keyboard.c b/dlls/dinput/tests/keyboard.c
index 5d32abe..4cd36c4 100644
--- a/dlls/dinput/tests/keyboard.c
+++ b/dlls/dinput/tests/keyboard.c
@@ -190,7 +190,7 @@ static void test_capabilities(LPDIRECTINPUT pDI, HWND hwnd)
     ok (LOWORD(HIBYTE(caps.dwDevType)) != DIDEVTYPEKEYBOARD_UNKNOWN,
         "GetCapabilities invalid device subtype for dwDevType: 0x%08x\n", caps.dwDevType);
 
-    if (pKeyboard) IUnknown_Release(pKeyboard);
+    IUnknown_Release(pKeyboard);
 }
 
 static void keyboard_tests(DWORD version)




More information about the wine-cvs mailing list