From fca26267682f3cdb4a014273ea3233ad678afb08 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Tue, 3 Mar 2009 08:43:26 +0100 Subject: [PATCH] msi/tests: Fix a test failure on Win95. --- dlls/msi/tests/package.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index 46fde5a1d95..ee8af399594 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -7775,6 +7775,12 @@ static void test_appsearch_reglocator(void) ok(!lstrcmpA(prop, "#-42"), "Expected \"#-42\", got \"%s\"\n", prop); size = ExpandEnvironmentStringsA("%PATH%", NULL, 0); + if (size == 0 && GetLastError() == ERROR_INVALID_PARAMETER) + { + /* Workaround for Win95 */ + CHAR tempbuf[1]; + size = ExpandEnvironmentStringsA("%PATH%", tempbuf, 0); + } pathvar = HeapAlloc(GetProcessHeap(), 0, size); ExpandEnvironmentStringsA("%PATH%", pathvar, size); -- 2.11.4.GIT