PATCH: shlwapi new compiler
Marcus Meissner
marcus at jet.franken.de
Thu Jul 15 14:05:14 CDT 2004
Hi,
New compiler does not like this construct.
Ciao, Marcus
Changelog:
Do not assign to casted values.
Index: dlls/shlwapi/msgbox.c
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/msgbox.c,v
retrieving revision 1.1
diff -u -r1.1 msgbox.c
--- dlls/shlwapi/msgbox.c 18 Mar 2004 02:11:23 -0000 1.1
+++ dlls/shlwapi/msgbox.c 15 Jul 2004 19:04:25 -0000
@@ -84,11 +84,11 @@
switch (LOWORD(wParam))
{
case IDYES:
- LOWORD(wParam) = IDOK;
+ wParam = MAKELONG(IDOK, HIWORD(wParam));
/* Fall through ... */
case IDNO:
if (LOWORD(wParam) == IDNO)
- LOWORD(wParam) = IDCANCEL;
+ wParam = MAKELONG(IDCANCEL, HIWORD(wParam));
/* Fall through ... */
case IDOK:
case IDCANCEL:
More information about the wine-patches
mailing list