>From 8055844920aec4e672b9831c7effaa7798f28317 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Sat, 20 Sep 2008 22:58:27 +0200 Subject: [PATCH] Fix a test for systems with %TEMP% only one level deep --- dlls/msi/tests/install.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index 3f2b0fc..5ae7595 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -4068,7 +4068,7 @@ static void test_transformprop(void) static void test_currentworkingdir(void) { UINT r; - CHAR path[MAX_PATH]; + CHAR path[MAX_PATH], dir[MAX_PATH]; LPSTR ptr, ptr2; CreateDirectoryA("msitest", NULL); @@ -4107,7 +4107,10 @@ static void test_currentworkingdir(void) *ptr2 = '\\'; *(ptr++) = '\0'; - SetCurrentDirectoryA(path); + /* We need a trailing backslash in case %TEMP% is only one level deep */ + lstrcpyA(dir, path); + lstrcatA(dir, "\\"); + SetCurrentDirectoryA(dir); r = MsiInstallProductA(ptr, NULL); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r); -- 1.5.5.1