[PATCH 2/2] shell32/tests: Simple test for KF_FLAG_DEFAULT_PATH
Nikolay Sivov
nsivov at codeweavers.com
Sun Dec 4 14:33:09 CST 2016
From: VRan Liu <gliuwr at gmail.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
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");
--
2.10.2
More information about the wine-patches
mailing list