VRan Liu : shell32/tests: Simple test for KF_FLAG_DEFAULT_PATH.

Alexandre Julliard julliard at winehq.org
Tue Dec 6 16:27:45 CST 2016


Module: wine
Branch: master
Commit: c64cdc1fe608faf01ca21708787839df849c0a55
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c64cdc1fe608faf01ca21708787839df849c0a55

Author: VRan Liu <gliuwr at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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 fa391c2..3c757ec 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");




More information about the wine-cvs mailing list