From 4d21409ebc4bfc328c740201b362067abc92a32f Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Wed, 6 Dec 2006 21:40:00 +0000 Subject: [PATCH] I blindly believe that WinCE doesn't delete a 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 2bd1b05de3..1d0a96278c 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -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; -- 2.45.2