]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxRemove() return value under Win CE
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 28 May 2005 09:00:36 +0000 (09:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 28 May 2005 09:00:36 +0000 (09:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/wxchar.h

index 139f54061174e7ed93c74c9f28c7be238ddd1c58..cf639c0437a6da5ff81612f1704721a26c7a6ff0 100644 (file)
         #define  wxRename    wxMSLU__trename
     #else
         #ifdef __WXWINCE__
-            #define  wxRemove    DeleteFile
+            /* carefully: wxRemove() must return 0 on success while DeleteFile()
+               returns 0 on error, so don't just define one as the other */
+            inline int wxRemove(const wxChar *path)
+            {
+                return ::DeleteFile(path) == 0;
+            }
         #else
             #define  wxRemove    _tremove
             #define  wxRename    _trename