comctl32: Cast-qual warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Wed Aug 30 13:40:52 CDT 2006
Changelog:
comctl32: Cast-qual warnings fix.
diff -urN a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
--- a/dlls/comctl32/toolbar.c 2006-08-19 09:36:40.000000000 +0100
+++ b/dlls/comctl32/toolbar.c 2006-08-30 18:14:18.000000000 +0100
@@ -3301,7 +3301,7 @@
return FALSE;
ret = DialogBoxIndirectParamW ((HINSTANCE)GetWindowLongPtrW(hwnd, GWLP_HINSTANCE),
- (LPDLGTEMPLATEW)template,
+ (LPCDLGTEMPLATEW)template,
hwnd,
TOOLBAR_CustomizeDialogProc,
(LPARAM)&custInfo);
diff -urN a/dlls/comctl32/trackbar.c b/dlls/comctl32/trackbar.c
--- a/dlls/comctl32/trackbar.c 2006-07-07 13:58:22.000000000 +0100
+++ b/dlls/comctl32/trackbar.c 2006-08-30 19:19:43.000000000 +0100
@@ -1048,8 +1048,8 @@
static int comp_tics(const void *ap, const void *bp)
{
- DWORD a = *((DWORD *)ap);
- DWORD b = *((DWORD *)bp);
+ const DWORD a = *(const DWORD *)ap;
+ const DWORD b = *(const DWORD *)bp;
TRACE("(a=%ld, b=%ld)\n", a, b);
if (a < b) return -1;
More information about the wine-patches
mailing list