comdlg: Send missing CDN_FOLDERCHANGE (resend 2)

Renu Rajput renu.rajput at gmail.com
Tue Aug 22 23:34:41 CDT 2006


Hi,

Fixes bug# 5475:

http://bugs.winehq.org/show_bug.cgi?id=5475

Thanks
Renu

diff -urN OldDir/dlls/comdlg32/filedlg.c NewDir/dlls/comdlg32/filedlg.c
--- OldDir/dlls/comdlg32/filedlg.c 2006-08-10 18:45:12.000000000 +0530
+++ NewDir/dlls/comdlg32/filedlg.c 2006-08-11 16:09:32.000000000 +0530
@@ -2011,7 +2011,10 @@
IPersistFolder2_Release(ppf2);
if( ! COMDLG32_PIDL_ILIsEqual(pidlCurrent, fodInfos->ShellInfos.pidlAbsCurrent))
{
- IShellBrowser_BrowseObject(fodInfos->Shell.FOIShellBrowser,
pidlCurrent, SBSP_ABSOLUTE);
+ if (SUCCEEDED(IShellBrowser_BrowseObject(fodInfos->Shell.FOIShellBrowser,
pidlCurrent, SBSP_ABSOLUTE)))
+ {
+ SendCustomDlgNotificationMessage(hwnd, CDN_FOLDERCHANGE);
+ }
}
else if( nOpenAction == ONOPEN_SEARCH )
{
-------------- next part --------------
diff -urN OldDir/dlls/comdlg32/filedlg.c NewDir/dlls/comdlg32/filedlg.c
--- OldDir/dlls/comdlg32/filedlg.c	2006-08-10 18:45:12.000000000 +0530
+++ NewDir/dlls/comdlg32/filedlg.c	2006-08-11 16:09:32.000000000 +0530
@@ -2011,7 +2011,10 @@
           IPersistFolder2_Release(ppf2);
 	  if( ! COMDLG32_PIDL_ILIsEqual(pidlCurrent, fodInfos->ShellInfos.pidlAbsCurrent))
 	  {
-	    IShellBrowser_BrowseObject(fodInfos->Shell.FOIShellBrowser, pidlCurrent, SBSP_ABSOLUTE);
+		if (SUCCEEDED(IShellBrowser_BrowseObject(fodInfos->Shell.FOIShellBrowser, pidlCurrent, SBSP_ABSOLUTE)))
+		{
+			SendCustomDlgNotificationMessage(hwnd, CDN_FOLDERCHANGE);
+		}
 	  }
 	  else if( nOpenAction == ONOPEN_SEARCH )
 	  {


More information about the wine-patches mailing list