From b8cde623dd4eba28eba3c9014175f68429d38264 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Wed, 14 Jan 2009 14:26:38 +0100 Subject: [PATCH] setupapi/tests: Fix some test failures on win9x. --- dlls/setupapi/tests/query.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/setupapi/tests/query.c b/dlls/setupapi/tests/query.c index 97be1a292c9..0b7883c6289 100644 --- a/dlls/setupapi/tests/query.c +++ b/dlls/setupapi/tests/query.c @@ -458,8 +458,7 @@ static void test_SetupGetTargetPath(void) ret = SetupGetTargetPathA(hinf, NULL, "CopyAlways.System32.Files", buffer, sizeof(buffer), &required); ok(ret, "SetupGetTargetPathA failed\n"); - lstrcpyA(destfile, WIN_DIR); - lstrcatA(destfile, "\\system32"); + GetSystemDirectoryA(destfile, MAX_PATH); ok(required == lstrlenA(destfile) + 1, "unexpected required size: %d\n", required); ok(!lstrcmpiA(buffer, destfile), "unexpected path: %s\n", buffer);