winefile: shell refresh

Martin Fuchs martin-fuchs at gmx.net
Thu Jul 7 13:49:34 CDT 2005


Changelog:
- move ID_ABOUT_WINE into #ifdef __WINE__
- support for refresh in shell namespace windows


Index: winefile.c
===================================================================
RCS file: /home/wine/wine/programs/winefile/winefile.c,v
retrieving revision 1.57
diff -u -p -d -r1.57 winefile.c
--- winefile.c	7 Jul 2005 12:00:17 -0000	1.57
+++ winefile.c	7 Jul 2005 18:48:10 -0000
@@ -2386,11 +2386,11 @@ static LRESULT CALLBACK FrameWndProc(HWN
 				case ID_NO_WARRANTY:
 					WineWarranty(Globals.hMainWnd);
 					break;
-#endif
 
 				case ID_ABOUT_WINE:
 					ShellAbout(hwnd, RS(b2,IDS_WINE), RS(b1,IDS_WINEFILE), 0);
 					break;
+#endif
 
 				case ID_ABOUT:
 					ShellAbout(hwnd, RS(b1,IDS_WINEFILE), NULL, 0);
@@ -3729,7 +3729,15 @@ static void refresh_child(ChildWnd* chil
 
 	scan_entry(child, &child->root.entry, 0, child->hwnd);
 
-	entry = read_tree(&child->root, path, NULL, drv, child->sortOrder, child->hwnd);
+#ifdef _SHELL_FOLDERS
+	if (child->root.entry.etype == ET_SHELL)
+		entry = read_tree(&child->root, NULL, get_path_pidl(path,child->hwnd), drv, child->sortOrder, child->hwnd);
+	else
+#endif
+		entry = read_tree(&child->root, path, NULL, drv, child->sortOrder, child->hwnd);
+
+	if (!entry)
+		entry = &child->root.entry;
 
 	insert_entries(&child->left, child->root.entry.down, NULL, TF_ALL, 0);
 





More information about the wine-patches mailing list