kernel32/tests: Remove variable ret which is not really used from load_blackbox. (RESEND)

Gerald Pfeifer gerald at pfeifer.com
Fri May 7 15:15:53 CDT 2010


I did not see any response, and this looks harmless a patch?  (We 
already check for size which should be sufficient?)

Gerald


diff --git a/dlls/kernel32/tests/debugger.c b/dlls/kernel32/tests/debugger.c
index e116c9d..09305b8 100644
--- a/dlls/kernel32/tests/debugger.c
+++ b/dlls/kernel32/tests/debugger.c
@@ -135,7 +135,6 @@ static int load_blackbox(const char* logfile, void* blackbox, int size)
 {
     HANDLE hFile;
     DWORD read;
-    BOOL ret;
 
     hFile=CreateFileA(logfile, GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, 0);
     if (hFile == INVALID_HANDLE_VALUE)
@@ -143,7 +142,7 @@ static int load_blackbox(const char* logfile, void* blackbox, int size)
         ok(0, "unable to open '%s'\n", logfile);
         return 0;
     }
-    ret=ReadFile(hFile, blackbox, size, &read, NULL);
+    ReadFile(hFile, blackbox, size, &read, NULL);
     ok(read == size, "wrong size for '%s': read=%d\n", logfile, read);
     CloseHandle(hFile);
     return 1;



More information about the wine-patches mailing list