20 May
2006
20 May
'06
11:57 p.m.
* On Mon, 10 Apr 2006, Detlef Riekenberg wrote:
+static void test_AddMonitor(void) +{
...
+ res = AddMonitorA(NULL, 2, NULL); + /* NT: unchanged, 9x: ERROR_PRIVILEGE_NOT_HELD */ + ok(!res && + ((GetLastError() == MAGIC_DEAD) || + (GetLastError() == ERROR_PRIVILEGE_NOT_HELD)), + "returned %ld with %ld (expected '0' with: MAGIC_DEAD or " \ + "ERROR_PRIVILEGE_NOT_HELD)\n", res, GetLastError());
Detlef, what version of 9x OS you have been testing this code on? On my ME system it generates an unhandled exception 0xC0000005: Access Violation.