From fa2444caf1d1540d9fb4be7220d51349d104d0e1 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 21 Jun 2010 11:50:15 +0200 Subject: [PATCH] shell32/tests: Use the windows directory for the SHParseDisplayName test to avoid ambiguous namings. --- dlls/shell32/tests/shlfolder.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c index d0055d4ffa5..085c91e064e 100644 --- a/dlls/shell32/tests/shlfolder.c +++ b/dlls/shell32/tests/shlfolder.c @@ -2024,7 +2024,6 @@ static void test_SHCreateShellItem(void) static void test_SHParseDisplayName(void) { - static const WCHAR prefixW[] = {'w','t',0}; LPITEMIDLIST pidl1, pidl2; IShellFolder *desktop; WCHAR dirW[MAX_PATH]; @@ -2066,9 +2065,7 @@ if (0) pILFree(pidl2); /* with path */ - GetTempPathW(sizeof(dirW)/sizeof(WCHAR), dirW); - GetTempFileNameW(dirW, prefixW, 0, dirW); - CreateFileW(dirW, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL); + GetWindowsDirectoryW( dirW, MAX_PATH ); hr = pSHParseDisplayName(dirW, NULL, &pidl1, 0, NULL); ok(hr == S_OK, "failed %08x\n", hr); @@ -2080,8 +2077,6 @@ if (0) pILFree(pidl1); pILFree(pidl2); - DeleteFileW(dirW); - IShellFolder_Release(desktop); }