Paul Vriens : msi/tests: Fix a test failure on Win95.
Alexandre Julliard
julliard at winehq.org
Tue Mar 3 11:53:43 CST 2009
Module: wine
Branch: master
Commit: fca26267682f3cdb4a014273ea3233ad678afb08
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fca26267682f3cdb4a014273ea3233ad678afb08
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Tue Mar 3 08:43:26 2009 +0100
msi/tests: Fix a test failure on Win95.
---
dlls/msi/tests/package.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c
index 46fde5a..ee8af39 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);
More information about the wine-cvs
mailing list