Commit c26fd262 authored by Jactry Zeng's avatar Jactry Zeng Committed by Alexandre Julliard

shell32: Assign a default flags for view information of IShellView.

parent b659fd28
......@@ -3780,6 +3780,7 @@ IShellView *IShellView_Constructor(IShellFolder *folder)
sv->ptLastMousePos.x = 0;
sv->ptLastMousePos.y = 0;
sv->FolderSettings.ViewMode = FVM_TILE;
sv->FolderSettings.fFlags = FWF_USESEARCHFOLDER;
TRACE("(%p)->(%p)\n", sv, folder);
return (IShellView*)&sv->IShellView3_iface;
......
......@@ -1504,7 +1504,7 @@ static void test_folder_flags(void)
ok(hr == S_OK, "Got hr %#lx.\n", hr);
ok(settings.ViewMode == FVM_TILE || broken(!settings.ViewMode) /* pre win7 */,
"Got view mode %u.\n", settings.ViewMode);
todo_wine ok(settings.fFlags == FWF_USESEARCHFOLDER || broken(!settings.fFlags) /* pre vista */,
ok(settings.fFlags == FWF_USESEARCHFOLDER || broken(!settings.fFlags) /* pre vista */,
"Got flags %#x.\n", settings.fFlags);
destroy_interfaces(desktop, shellview);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment