msi/tests: Change the current directory to a writable location for the package tests.
Francois Gouget
fgouget at free.fr
Tue Mar 4 08:20:19 CST 2014
---
dlls/msi/tests/package.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c
index 935a0fd..d8728f2 100644
--- a/dlls/msi/tests/package.c
+++ b/dlls/msi/tests/package.c
@@ -8838,6 +8838,11 @@ START_TEST(package)
{
STATEMGRSTATUS status;
BOOL ret = FALSE;
+ char curdir[MAX_PATH], tmpdir[MAX_PATH];
+
+ GetCurrentDirectoryA(MAX_PATH, curdir);
+ GetTempPathA(MAX_PATH, tmpdir);
+ SetCurrentDirectoryA(tmpdir);
init_functionpointers();
@@ -8898,4 +8903,6 @@ START_TEST(package)
if (ret)
remove_restore_point(status.llSequenceNumber);
}
+
+ SetCurrentDirectoryA(curdir);
}
--
1.8.5.3
More information about the wine-patches
mailing list