]> git.saurik.com Git - wxWidgets.git/commitdiff
I blindly believe that WinCE doesn't delete a
authorRobert Roebling <robert@roebling.de>
Wed, 6 Dec 2006 21:40:00 +0000 (21:40 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 6 Dec 2006 21:40:00 +0000 (21:40 +0000)
    directory with CreateDirectory.
  [ 1610415 ] wxWinCE remove directory

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index 2bd1b05de35d88d92155a838b37ceb93c35495c4..1d0a96278c72145467a4641de8c3f579d1c6bcd9 100644 (file)
@@ -1270,7 +1270,7 @@ bool wxRmdir(const wxString& dir, int WXUNUSED(flags))
 #elif defined(__OS2__)
     return (::DosDeleteDir((PSZ)dir.c_str()) == 0);
 #elif defined(__WXWINCE__)
-    return (CreateDirectory(dir, NULL) != 0);
+    return (RemoveDirectory(dir) != 0);
 #elif defined(__WXPALMOS__)
     // TODO with VFSFileRename()
     return false;