shell32/tests: Also test without flags
André Hentschel
nerv at dawncrow.de
Mon May 9 13:03:32 CDT 2011
spottet with gcov
---
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)
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list