advapi32/tests: Accept another value for the default service pre-shutdown timeout.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Zebediah Figura 2019-10-25 11:40:13 -05:00 committed by Alexandre Julliard
parent 4eee305bb8
commit a39d0c7a39
1 changed files with 3 additions and 2 deletions

View File

@ -2275,8 +2275,9 @@ static void test_queryconfig2(void)
}
ok(ret, "expected QueryServiceConfig2W to succeed (%d)\n", GetLastError());
ok(needed == sizeof(preshutdown_info), "needed = %d\n", needed);
ok(preshutdown_info.dwPreshutdownTimeout == 180000, "Default PreshutdownTimeout = %d\n",
preshutdown_info.dwPreshutdownTimeout);
ok(preshutdown_info.dwPreshutdownTimeout == 180000
|| preshutdown_info.dwPreshutdownTimeout == 10000 /* Win10 1709+ */,
"Default PreshutdownTimeout = %d\n", preshutdown_info.dwPreshutdownTimeout);
SetLastError(0xdeadbeef);
preshutdown_info.dwPreshutdownTimeout = -1;