msi/tests: Services are not available on win9x.

oldstable
Paul Vriens 2008-02-14 17:30:55 +01:00 committed by Alexandre Julliard
parent a5886607d0
commit 4c105b2f5c
1 changed files with 9 additions and 0 deletions

View File

@ -1343,6 +1343,15 @@ static void test_MsiInstallProduct(void)
LONG res;
HKEY hkey;
DWORD num, size, type;
SC_HANDLE scm;
scm = OpenSCManager(NULL, NULL, GENERIC_ALL);
if (!scm && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED))
{
skip("Services are not implemented, we are most likely on win9x\n");
return;
}
CloseServiceHandle(scm);
create_test_files();
create_database(msifile, tables, sizeof(tables) / sizeof(msi_table));