Fix bug#5475 : File Open Dialog [RESEND]

renu.rajput at tcs.com renu.rajput at tcs.com
Wed Aug 16 00:51:08 CDT 2006


Hi,

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

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 )
        {

Thanks,
Author: Renu Rajput
Copyright 2006 Tata Consultancy Services Limited
License: LGPL.

(See attached file: patch.txt)
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


-------------- 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