fixed bug in shell32

Piotr Caban pio13 at poczta.onet.pl
Mon Oct 4 07:03:21 CDT 2004


changelog:
  - fixed bug in SHNotifyRemoveDirectory function
-------------- next part --------------
Index: dlls/shell32/shlfileop.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shlfileop.c,v
retrieving revision 1.42
diff -u -r1.42 shlfileop.c
--- dlls/shell32/shlfileop.c	16 Aug 2004 19:57:05 -0000	1.42
+++ dlls/shell32/shlfileop.c	4 Oct 2004 11:41:16 -0000
@@ -163,10 +163,10 @@
 	    else
 	      ret = (SHNotifyDeleteFileA(szTemp) == ERROR_SUCCESS);
 	  } while (ret && FindNextFileA(hFind, &wfd));
+	  FindClose(hFind);
+	  if (ret)
+	    ret = (SHNotifyRemoveDirectoryA(pszDir) == ERROR_SUCCESS);
 	}
-	FindClose(hFind);
-	if (ret)
-	  ret = (SHNotifyRemoveDirectoryA(pszDir) == ERROR_SUCCESS);
 	return ret;
 }
 
@@ -198,10 +198,10 @@
 	    else
 	      ret = (SHNotifyDeleteFileW(szTemp) == ERROR_SUCCESS);
 	  } while (ret && FindNextFileW(hFind, &wfd));
+	  FindClose(hFind);
+	  if (ret)
+	    ret = (SHNotifyRemoveDirectoryW(pszDir) == ERROR_SUCCESS);
 	}
-	FindClose(hFind);
-	if (ret)
-	  ret = (SHNotifyRemoveDirectoryW(pszDir) == ERROR_SUCCESS);
 	return ret;
 }
 


More information about the wine-patches mailing list