shell32/tests: Also test without flags.
authorAndré Hentschel <nerv@dawncrow.de>
Mon, 9 May 2011 18:03:32 +0000 (20:03 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 10 May 2011 16:53:26 +0000 (18:53 +0200)
dlls/shell32/tests/brsfolder.c

index 7adaa1f..b7f920d 100644 (file)
@@ -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)