Francois Gouget : comctl32/tests: Use the PROPSHEETHEADERA_V1_SIZE macros for compatibility with old comctl32 versions .
Alexandre Julliard
julliard at winehq.org
Fri Sep 9 10:56:48 CDT 2011
Module: wine
Branch: master
Commit: 5464d5423a89014cfaae41dda9f42706808f2b2c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5464d5423a89014cfaae41dda9f42706808f2b2c
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Tue Sep 6 00:21:04 2011 +0200
comctl32/tests: Use the PROPSHEETHEADERA_V1_SIZE macros for compatibility with old comctl32 versions.
---
dlls/comctl32/tests/propsheet.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/dlls/comctl32/tests/propsheet.c b/dlls/comctl32/tests/propsheet.c
index 6d47160..92fb1dd 100644
--- a/dlls/comctl32/tests/propsheet.c
+++ b/dlls/comctl32/tests/propsheet.c
@@ -121,7 +121,7 @@ static void test_title(void)
hpsp[0] = CreatePropertySheetPageA(&psp);
memset(&psh, 0, sizeof(psh));
- psh.dwSize = CCSIZEOF_STRUCT(PROPSHEETHEADERA, pfnCallback);
+ psh.dwSize = PROPSHEETHEADERA_V1_SIZE;
psh.dwFlags = PSH_MODELESS | PSH_USECALLBACK;
psh.pszCaption = "test caption";
psh.nPages = 1;
@@ -160,7 +160,7 @@ static void test_nopage(void)
hpsp[0] = CreatePropertySheetPageA(&psp);
memset(&psh, 0, sizeof(psh));
- psh.dwSize = CCSIZEOF_STRUCT(PROPSHEETHEADERA, pfnCallback);
+ psh.dwSize = PROPSHEETHEADERA_V1_SIZE;
psh.dwFlags = PSH_MODELESS | PSH_USECALLBACK;
psh.pszCaption = "test caption";
psh.nPages = 1;
@@ -237,7 +237,7 @@ static void test_disableowner(void)
hpsp[0] = CreatePropertySheetPageA(&psp);
memset(&psh, 0, sizeof(psh));
- psh.dwSize = sizeof(psh);
+ psh.dwSize = PROPSHEETHEADERA_V1_SIZE;
psh.dwFlags = PSH_USECALLBACK;
psh.pszCaption = "test caption";
psh.nPages = 1;
@@ -317,7 +317,7 @@ static void test_wiznavigation(void)
/* set up the property sheet dialog */
memset(&psh, 0, sizeof(psh));
- psh.dwSize = CCSIZEOF_STRUCT(PROPSHEETHEADERA, pfnCallback);
+ psh.dwSize = PROPSHEETHEADERA_V1_SIZE;
psh.dwFlags = PSH_MODELESS | PSH_WIZARD;
psh.pszCaption = "A Wizard";
psh.nPages = 4;
@@ -420,7 +420,7 @@ static void test_buttons(void)
hpsp[0] = CreatePropertySheetPageA(&psp);
memset(&psh, 0, sizeof(psh));
- psh.dwSize = CCSIZEOF_STRUCT(PROPSHEETHEADERA, pfnCallback);
+ psh.dwSize = PROPSHEETHEADERA_V1_SIZE;
psh.dwFlags = PSH_MODELESS | PSH_USECALLBACK;
psh.pszCaption = "test caption";
psh.nPages = 1;
@@ -499,7 +499,7 @@ static void test_custom_default_button(void)
psp[0].pszTitle = "Page1";
psp[0].lParam = 0;
- psh.dwSize = sizeof (PROPSHEETHEADERA);
+ psh.dwSize = PROPSHEETHEADERA_V1_SIZE;
psh.dwFlags = PSH_PROPSHEETPAGE | PSH_MODELESS;
psh.hwndParent = GetDesktopWindow();
psh.hInstance = GetModuleHandleA(NULL);
@@ -729,7 +729,7 @@ static void test_messages(void)
hpsp[0] = CreatePropertySheetPageA(&psp);
memset(&psh, 0, sizeof(psh));
- psh.dwSize = CCSIZEOF_STRUCT(PROPSHEETHEADERA, pfnCallback);
+ psh.dwSize = PROPSHEETHEADERA_V1_SIZE;
psh.dwFlags = PSH_NOAPPLYNOW | PSH_WIZARD | PSH_USECALLBACK
| PSH_MODELESS | PSH_USEICONID;
psh.pszCaption = "test caption";
@@ -772,7 +772,7 @@ static void test_PSM_ADDPAGE(void)
hpsp[2] = CreatePropertySheetPageA(&psp);
memset(&psh, 0, sizeof(psh));
- psh.dwSize = sizeof(psh);
+ psh.dwSize = PROPSHEETHEADERA_V1_SIZE;
psh.dwFlags = PSH_MODELESS;
psh.pszCaption = "test caption";
psh.nPages = 1;
More information about the wine-cvs
mailing list