Francois Gouget : comctl32/tests: Don' t use the NONAMELESS* macros in the tests.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Nov 24 06:19:05 CST 2006


Module: wine
Branch: master
Commit: 9d2f40cf33350053c21f87860ba058ac3c8a64be
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9d2f40cf33350053c21f87860ba058ac3c8a64be

Author: Francois Gouget <fgouget at free.fr>
Date:   Thu Nov 23 21:33:06 2006 +0100

comctl32/tests: Don't use the NONAMELESS* macros in the tests.

---

 dlls/comctl32/tests/propsheet.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/dlls/comctl32/tests/propsheet.c b/dlls/comctl32/tests/propsheet.c
index 79be337..db71bfe 100644
--- a/dlls/comctl32/tests/propsheet.c
+++ b/dlls/comctl32/tests/propsheet.c
@@ -17,9 +17,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-
 #include <windows.h>
 #include <commctrl.h>
 
@@ -81,8 +78,8 @@ static void test_title(void)
     psp.dwSize = sizeof(psp);
     psp.dwFlags = 0;
     psp.hInstance = GetModuleHandleW(NULL);
-    psp.u.pszTemplate = "prop_page1";
-    psp.u2.pszIcon = NULL;
+    U(psp).pszTemplate = "prop_page1";
+    U2(psp).pszIcon = NULL;
     psp.pfnDlgProc = page_dlg_proc;
     psp.lParam = 0;
 
@@ -94,7 +91,7 @@ static void test_title(void)
     psh.pszCaption = "test caption";
     psh.nPages = 1;
     psh.hwndParent = GetDesktopWindow();
-    psh.u3.phpage = hpsp;
+    U3(psh).phpage = hpsp;
     psh.pfnCallback = sheet_callback;
 
     hdlg = (HWND)PropertySheetA(&psh);




More information about the wine-cvs mailing list