mirror of
https://github.com/reactos/wine.git
synced 2025-01-24 04:45:18 +00:00
comdlg32/tests: More tests for the member lStructSize.
This commit is contained in:
parent
f8b2b77f69
commit
84e4904ffd
@ -58,6 +58,15 @@ static void test_PageSetupDlgA(void)
|
||||
"returned %u with %u and 0x%x (expected '0' and "
|
||||
"CDERR_STRUCTSIZE)\n", res, GetLastError(), CommDlgExtendedError());
|
||||
|
||||
ZeroMemory(pDlg, sizeof(PAGESETUPDLGA));
|
||||
pDlg->lStructSize = sizeof(PAGESETUPDLGA) +1;
|
||||
pDlg->Flags = PSD_RETURNDEFAULT;
|
||||
SetLastError(0xdeadbeef);
|
||||
res = PageSetupDlgA(pDlg);
|
||||
ok( !res && (CommDlgExtendedError() == CDERR_STRUCTSIZE),
|
||||
"returned %u with %u and 0x%x (expected '0' and CDERR_STRUCTSIZE)\n",
|
||||
res, GetLastError(), CommDlgExtendedError());
|
||||
|
||||
|
||||
ZeroMemory(pDlg, sizeof(PAGESETUPDLGA));
|
||||
pDlg->lStructSize = sizeof(PAGESETUPDLGA);
|
||||
@ -106,6 +115,15 @@ static void test_PrintDlgA(void)
|
||||
"returned %d with 0x%x and 0x%x (expected '0' and "
|
||||
"CDERR_STRUCTSIZE)\n", res, GetLastError(), CommDlgExtendedError());
|
||||
|
||||
ZeroMemory(pDlg, sizeof(PRINTDLGA));
|
||||
pDlg->lStructSize = sizeof(PRINTDLGA) + 1;
|
||||
pDlg->Flags = PD_RETURNDEFAULT;
|
||||
SetLastError(0xdeadbeef);
|
||||
res = PrintDlgA(pDlg);
|
||||
ok( !res && (CommDlgExtendedError() == CDERR_STRUCTSIZE),
|
||||
"returned %u with %u and 0x%x (expected '0' and "
|
||||
"CDERR_STRUCTSIZE)\n", res, GetLastError(), CommDlgExtendedError());
|
||||
|
||||
|
||||
ZeroMemory(pDlg, sizeof(PRINTDLGA));
|
||||
pDlg->lStructSize = sizeof(PRINTDLGA);
|
||||
|
Loading…
x
Reference in New Issue
Block a user