Patch #3069 2010-09-17 18:17

mmkider

In the ClassWizardDlg::DoForceDirectory has a recursive bug.
Download
3069-In_the_ClassWi.patch (443 bytes)
Category
 
Status
Accepted
Close date
2010-09-21 05:24
Assigned to
mortenmacfly
Index: classwizarddlg.cpp
===================================================================
--- classwizarddlg.cpp    (revision 6604)
+++ classwizarddlg.cpp    (working copy)
@@ -707,7 +707,7 @@
     wxFileName parentname(filename);
     parentname.RemoveLastDir();
 
-    if (filename != parentname)
+    if (filename != parentname&&parentname.GetDirCount()>=1)
         DoForceDirectory(parentname);
 
     if (!wxDirExists(filename.GetPath()))
mmkider 2010-09-17 18:18

In the DoForceDirectory, this fucntion recusive to Remove dir and make dir.

but last time, for Examples d:\abc.h.

It have do error thing.

mmkider 2010-09-17 18:23

This function lost termination condition