regedit: Cast to LPARAM the 4th argument passed to SendMessage.

Michael Stefaniuc mstefani at redhat.de
Mon Mar 2 16:33:19 CST 2009


---
 programs/regedit/framewnd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c
index 6c8745e..d88ef0e 100644
--- a/programs/regedit/framewnd.c
+++ b/programs/regedit/framewnd.c
@@ -87,7 +87,7 @@ static void OnEnterMenuLoop(HWND hWnd)
 
     /* Update the status bar pane sizes */
     nParts = -1;
-    SendMessageW(hStatusBar, SB_SETPARTS, 1, (long)&nParts);
+    SendMessageW(hStatusBar, SB_SETPARTS, 1, (LPARAM)&nParts);
     bInMenuLoop = TRUE;
     SendMessageW(hStatusBar, SB_SETTEXTW, 0, (LPARAM)&empty);
 }
-- 
1.6.2.rc1



More information about the wine-patches mailing list