wineboot: avoid shadowing a parameter

Austin English austinenglish at gmail.com
Wed Mar 9 03:08:32 CST 2011


-- 
-Austin
-------------- next part --------------
diff --git a/programs/wineboot/shutdown.c b/programs/wineboot/shutdown.c
index ac3019c..ead6312 100644
--- a/programs/wineboot/shutdown.c
+++ b/programs/wineboot/shutdown.c
@@ -203,13 +203,13 @@ static LRESULT send_messages_with_timeout_dialog(
         }
         else if (ret == WAIT_OBJECT_0 + 1) /* window message */
         {
-            MSG msg;
-            while(PeekMessageW( &msg, NULL, 0, 0, PM_REMOVE ))
+            MSG winmsg;
+            while(PeekMessageW( &winmsg, NULL, 0, 0, PM_REMOVE ))
             {
-                if (!hwnd_endtask || !IsDialogMessageW( hwnd_endtask, &msg ))
+                if (!hwnd_endtask || !IsDialogMessageW( hwnd_endtask, &winmsg ))
                 {
-                    TranslateMessage( &msg );
-                    DispatchMessageW( &msg );
+                    TranslateMessage( &winmsg );
+                    DispatchMessageW( &winmsg );
                 }
             }
             if (!cb_data->window_count)


More information about the wine-patches mailing list