Francois Gouget : comdlg32/tests: Fix compilation on systems that don' t support nameless structs or unions.
Alexandre Julliard
julliard at winehq.org
Mon May 13 15:02:44 CDT 2013
Module: wine
Branch: master
Commit: fb9d76816a6fea4957fad8485ff8a2792418d4c2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fb9d76816a6fea4957fad8485ff8a2792418d4c2
Author: Francois Gouget <fgouget at free.fr>
Date: Sun May 12 13:55:27 2013 +0200
comdlg32/tests: Fix compilation on systems that don't support nameless structs or unions.
---
dlls/comdlg32/tests/printdlg.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comdlg32/tests/printdlg.c b/dlls/comdlg32/tests/printdlg.c
index 7acbdb0..83be893 100644
--- a/dlls/comdlg32/tests/printdlg.c
+++ b/dlls/comdlg32/tests/printdlg.c
@@ -255,7 +255,7 @@ static void test_PrintDlgA(void)
ok(pDlg->nCopies == 1234 || broken(pDlg->nCopies == 1), "expected nCopies 1234, got %d\n", pDlg->nCopies);
ok(pDlg->hDevMode != 0, "hDevMode should not be 0\n");
dm = GlobalLock(pDlg->hDevMode);
- ok(dm->dmCopies == 1, "expected dm->dmCopies 1, got %d\n", dm->dmCopies);
+ ok(S1(U1(*dm)).dmCopies == 1, "expected dm->dmCopies 1, got %d\n", S1(U1(*dm)).dmCopies);
GlobalUnlock(pDlg->hDevMode);
GlobalFree(pDlg->hDevMode);
GlobalFree(pDlg->hDevNames);
@@ -269,7 +269,7 @@ static void test_PrintDlgA(void)
ok(pDlg->nCopies == 1, "expected nCopies 1, got %d\n", pDlg->nCopies);
ok(pDlg->hDevMode != 0, "hDevMode should not be 0\n");
dm = GlobalLock(pDlg->hDevMode);
- ok(dm->dmCopies == 1234, "expected dm->dmCopies 1234, got %d\n", dm->dmCopies);
+ ok(S1(U1(*dm)).dmCopies == 1234, "expected dm->dmCopies 1234, got %d\n", S1(U1(*dm)).dmCopies);
GlobalUnlock(pDlg->hDevMode);
GlobalFree(pDlg->hDevMode);
GlobalFree(pDlg->hDevNames);
More information about the wine-cvs
mailing list