[PATCH] msi/tests: Replace lstrcatW with memcpy to fix failures on win95
Detlef Riekenberg
wine.dev at web.de
Fri Apr 17 08:18:44 CDT 2009
---
dlls/msi/tests/automation.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/tests/automation.c b/dlls/msi/tests/automation.c
index f9ab254..9b3cf81 100644
--- a/dlls/msi/tests/automation.c
+++ b/dlls/msi/tests/automation.c
@@ -2395,8 +2395,9 @@ static void test_Installer(void)
ok(len, "MultiByteToWideChar returned error %d\n", GetLastError());
if (!len) return;
- lstrcatW(szPath, szBackslash);
- lstrcatW(szPath, szMsifile);
+ /* lstrcatW does not work on win95 */
+ szPath[len - 1] = '\\';
+ memcpy(&szPath[len], szMsifile, sizeof(szMsifile));
/* Installer::OpenPackage */
hr = Installer_OpenPackage(szPath, 0, &pSession);
--
1.5.4.3
--=-V97FbNBYVRDPsJbxjpT9--
More information about the wine-patches
mailing list