Re: winspool: Add a test for DeviceCapabilities, fix some bugs found
On Di, 2007-04-03 at 23:40 +0900, Dmitry Timoshkov wrote:
Changelog: winspool: Add a test for DeviceCapabilities, fix some bugs found.
+ ok(prn_dlg.hDevMode != 0, "PrintDlg returned hDevMode == NULL\n"); + ok(prn_dlg.hDevNames != 0, "PrintDlg returned hDevNames == NULL\n"); + + dm = GlobalLock(prn_dlg.hDevMode); + ok(dm != NULL, "GlobalLock(prn_dlg.hDevMode) failed\n"); + trace("dmDeviceName \"%s\"\n", dm->dmDeviceName); + + dn = GlobalLock(prn_dlg.hDevNames); + ok(dn != NULL, "GlobalLock(prn_dlg.hDevNames) failed\n"); + ok(dn->wDriverOffset, "expected not 0 wDriverOffset\n"); + ok(dn->wDeviceOffset, "expected not 0 wDeviceOffset\n"); + ok(dn->wOutputOffset, "expected not 0 wOutputOffset\n"); + ok(dn->wDefault == DN_DEFAULTPRN, "expected DN_DEFAULTPRN got %x\n", dn->wDefault); + driver = (const char *)dn + dn->wDriverOffset; + device = (const char *)dn + dn->wDeviceOffset; + port = (const char *)dn + dn->wOutputOffset; + trace("driver \"%s\" device \"%s\" port \"%s\"\n", driver, device, port); + + ok(lstrcmp((const char *)dm->dmDeviceName, (const char *)dn + dn->wDeviceOffset) == 0, "device names not match\n");
You are testing "PrintDlgA" in the testsuite for "winspool.drv". The correct location is: dlls/comdlg32/tests/printdlg.c -- By by ... Detlef
participants (1)
-
Detlef Riekenberg