Commit fa2444ca authored by Alexandre Julliard's avatar Alexandre Julliard

shell32/tests: Use the windows directory for the SHParseDisplayName test to…

shell32/tests: Use the windows directory for the SHParseDisplayName test to avoid ambiguous namings.
parent 8b543906
...@@ -2024,7 +2024,6 @@ static void test_SHCreateShellItem(void) ...@@ -2024,7 +2024,6 @@ static void test_SHCreateShellItem(void)
static void test_SHParseDisplayName(void) static void test_SHParseDisplayName(void)
{ {
static const WCHAR prefixW[] = {'w','t',0};
LPITEMIDLIST pidl1, pidl2; LPITEMIDLIST pidl1, pidl2;
IShellFolder *desktop; IShellFolder *desktop;
WCHAR dirW[MAX_PATH]; WCHAR dirW[MAX_PATH];
...@@ -2066,9 +2065,7 @@ if (0) ...@@ -2066,9 +2065,7 @@ if (0)
pILFree(pidl2); pILFree(pidl2);
/* with path */ /* with path */
GetTempPathW(sizeof(dirW)/sizeof(WCHAR), dirW); GetWindowsDirectoryW( dirW, MAX_PATH );
GetTempFileNameW(dirW, prefixW, 0, dirW);
CreateFileW(dirW, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL);
hr = pSHParseDisplayName(dirW, NULL, &pidl1, 0, NULL); hr = pSHParseDisplayName(dirW, NULL, &pidl1, 0, NULL);
ok(hr == S_OK, "failed %08x\n", hr); ok(hr == S_OK, "failed %08x\n", hr);
...@@ -2080,8 +2077,6 @@ if (0) ...@@ -2080,8 +2077,6 @@ if (0)
pILFree(pidl1); pILFree(pidl1);
pILFree(pidl2); pILFree(pidl2);
DeleteFileW(dirW);
IShellFolder_Release(desktop); IShellFolder_Release(desktop);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment