Commit 72d6d425 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

winspool/tests: Fix failures in test_DEVMODE.

parent 3abd27c6
...@@ -1096,8 +1096,16 @@ static void test_GetPrinterDriver(void) ...@@ -1096,8 +1096,16 @@ static void test_GetPrinterDriver(void)
static void test_DEVMODE(const DEVMODE *dm, LONG dmSize, LPCSTR exp_prn_name) static void test_DEVMODE(const DEVMODE *dm, LONG dmSize, LPCSTR exp_prn_name)
{ {
ok(!strcmp(exp_prn_name, (LPCSTR)dm->dmDeviceName), "expected %s, got %s\n", exp_prn_name, dm->dmDeviceName); /* On NT3.51, some fields in DEVMODE are empty/zero
ok(dm->dmSize + dm->dmDriverExtra == dmSize, "%u != %ld\n", dm->dmSize + dm->dmDriverExtra, dmSize); (dmDeviceName, dmSpecVersion, dmDriverVersion and dmDriverExtra)
We skip the Tests on this Platform */
if (dm->dmSpecVersion || dm->dmDriverVersion || dm->dmDriverExtra) {
/* The Printername can be larger (MAX_PATH) than CCHDEVICENAME */
ok(!strncmp(exp_prn_name, (LPCSTR)dm->dmDeviceName, CCHDEVICENAME),
"expected '%s', got '%s'\n", exp_prn_name, dm->dmDeviceName);
ok(dm->dmSize + dm->dmDriverExtra == dmSize,
"%u != %ld\n", dm->dmSize + dm->dmDriverExtra, dmSize);
}
trace("dmFields %08lx\n", dm->dmFields); trace("dmFields %08lx\n", dm->dmFields);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment