Module: wine Branch: master Commit: fa2444caf1d1540d9fb4be7220d51349d104d0e1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fa2444caf1d1540d9fb4be7220...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Jun 21 11:50:15 2010 +0200
shell32/tests: Use the windows directory for the SHParseDisplayName test to avoid ambiguous namings.
---
dlls/shell32/tests/shlfolder.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c index d0055d4..085c91e 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); }