fixed wxRemove() return value under Win CE

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-05-28 09:00:36 +00:00
parent 9b58521dc9
commit 53187e95ad

View File

@ -362,7 +362,12 @@
#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