msvcrt: void functions should not return a value

Andrew Talbot andrew.talbot at talbotville.com
Sat Aug 6 06:51:16 CDT 2011


Changelog:
    msvcrt: void functions should not return a value.

diff --git a/dlls/msvcrt/exit.c b/dlls/msvcrt/exit.c
index 6c6b55f..19b9fb4 100644
--- a/dlls/msvcrt/exit.c
+++ b/dlls/msvcrt/exit.c
@@ -139,7 +139,7 @@ static void DoMessageBox(const char *lead, const char *message)
   MSVCRT_mbstowcs(leadW, lead, 1024);
   MSVCRT_mbstowcs(messageW, message, 1024);
 
-  return DoMessageBoxW(leadW, messageW);
+  DoMessageBoxW(leadW, messageW);
 }
 
 /*********************************************************************
diff --git a/dlls/msvcrt/time.c b/dlls/msvcrt/time.c
index 5ff1467..bf87711 100644
--- a/dlls/msvcrt/time.c
+++ b/dlls/msvcrt/time.c
@@ -655,12 +655,12 @@ int CDECL MSVCRT__ftime32_s(struct MSVCRT___timeb32 *buf)
 #ifdef _WIN64
 void CDECL MSVCRT__ftime(struct MSVCRT___timeb64 *buf)
 {
-    return MSVCRT__ftime64( buf );
+    MSVCRT__ftime64( buf );
 }
 #else
 void CDECL MSVCRT__ftime(struct MSVCRT___timeb32 *buf)
 {
-    return MSVCRT__ftime32( buf );
+    MSVCRT__ftime32( buf );
 }
 #endif
 



More information about the wine-patches mailing list