Module: wine Branch: oldstable Commit: 5ef771160e4da018d518cc807b3dd9575c119a53 URL: http://source.winehq.org/git/wine.git/?a=commit;h=5ef771160e4da018d518cc807b...
Author: VRan Liu gliuwr@gmail.com Date: Sun Dec 4 23:33:09 2016 +0300
shell32/tests: Simple test for KF_FLAG_DEFAULT_PATH.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit c64cdc1fe608faf01ca21708787839df849c0a55) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
dlls/shell32/tests/shellpath.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/shell32/tests/shellpath.c b/dlls/shell32/tests/shellpath.c index 6b5ed76..8c61cf7 100644 --- a/dlls/shell32/tests/shellpath.c +++ b/dlls/shell32/tests/shellpath.c @@ -860,6 +860,12 @@ if (0) { /* crashes */ ok(path == NULL, "got %p\n", path);
path = NULL; + hr = pSHGetKnownFolderPath(&FOLDERID_Desktop, KF_FLAG_DEFAULT_PATH, NULL, &path); + ok(hr == S_OK, "expected S_OK, got 0x%08x\n", hr); + ok(path != NULL, "expected path != NULL\n"); + CoTaskMemFree(path); + + path = NULL; hr = pSHGetKnownFolderPath(&FOLDERID_Desktop, 0, NULL, &path); ok(hr == S_OK, "expected S_OK, got 0x%08x\n", hr); ok(path != NULL, "expected path != NULL\n");