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>
This commit is contained in:
VRan Liu 2016-12-04 23:33:09 +03:00 committed by Alexandre Julliard
parent a0c259cf56
commit c64cdc1fe6
1 changed files with 6 additions and 0 deletions

View File

@ -859,6 +859,12 @@ if (0) { /* crashes */
ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), "got 0x%08x\n", hr);
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);