Bruno Jesus : winmm: Return meaningful value in WINMM_CreateIData.

Alexandre Julliard julliard at winehq.org
Thu Dec 1 15:37:44 CST 2016


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

Author: Bruno Jesus <00cpxxx at gmail.com>
Date:   Thu Dec  1 11:32:34 2016 -0200

winmm: Return meaningful value in WINMM_CreateIData.

Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winmm/winmm.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dlls/winmm/winmm.c b/dlls/winmm/winmm.c
index f2d0858..0f3cd5d 100644
--- a/dlls/winmm/winmm.c
+++ b/dlls/winmm/winmm.c
@@ -79,7 +79,7 @@ static	BOOL	WINMM_CreateIData(HINSTANCE hInstDLL)
 {
     hWinMM32Instance = hInstDLL;
     psLastEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
-    return TRUE;
+    return psLastEvent != NULL;
 }
 
 /******************************************************************
@@ -137,9 +137,10 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID fImpLoad)
     case DLL_PROCESS_ATTACH:
         DisableThreadLibraryCalls(hInstDLL);
 
-	if (!WINMM_CreateIData(hInstDLL))
-	    return FALSE;
-	break;
+        if (!WINMM_CreateIData(hInstDLL))
+            return FALSE;
+
+        break;
     case DLL_PROCESS_DETACH:
         if(fImpLoad)
             break;




More information about the wine-cvs mailing list