Module: wine Branch: master Commit: 81fba92625e0888df0e17b79a137984956dcc04a URL: http://source.winehq.org/git/wine.git/?a=commit;h=81fba92625e0888df0e17b79a1...
Author: André Hentschel nerv@dawncrow.de Date: Mon May 9 20:03:32 2011 +0200
shell32/tests: Also test without flags.
---
dlls/shell32/tests/brsfolder.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/dlls/shell32/tests/brsfolder.c b/dlls/shell32/tests/brsfolder.c index 7adaa1f..b7f920d 100644 --- a/dlls/shell32/tests/brsfolder.c +++ b/dlls/shell32/tests/brsfolder.c @@ -323,7 +323,6 @@ static void test_selection(void) bi.hwndOwner = NULL; bi.pszDisplayName = NULL; bi.lpszTitle = (LPTSTR) title; - bi.ulFlags = BIF_NEWDIALOGSTYLE; bi.lpfn = selection_callback;
SHGetDesktopFolder(&desktop_object); @@ -331,6 +330,15 @@ static void test_selection(void) selected_folderW, 0UL, &selected_folder_pidl, 0UL); bi.pidlRoot = selected_folder_pidl;
+ /* test without flags */ + bi.ulFlags = 0; + pidl = SHBrowseForFolder(&bi); + + if (pidl) + CoTaskMemFree(pidl); + + /* test with flag */ + bi.ulFlags = BIF_NEWDIALOGSTYLE; pidl = SHBrowseForFolder(&bi);
if (pidl)