Paul Vriens : msi/tests: Services are not available on win9x.

Alexandre Julliard julliard at winehq.org
Fri Feb 15 05:36:01 CST 2008


Module: wine
Branch: master
Commit: 4c105b2f5c9d25255cafb941d6ee7f2d06443714
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4c105b2f5c9d25255cafb941d6ee7f2d06443714

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Thu Feb 14 17:30:55 2008 +0100

msi/tests: Services are not available on win9x.

---

 dlls/msi/tests/install.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c
index 0eb6548..429ded8 100644
--- a/dlls/msi/tests/install.c
+++ b/dlls/msi/tests/install.c
@@ -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));




More information about the wine-cvs mailing list