X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ea92b4d7792987769774ac381685dae15c70454..ba30efbc53a2a11794cb3ed999b5b053aeb077d4:/src/os2/utils.cpp diff --git a/src/os2/utils.cpp b/src/os2/utils.cpp index f779879590..1ee5362ef4 100644 --- a/src/os2/utils.cpp +++ b/src/os2/utils.cpp @@ -220,12 +220,12 @@ wxBatteryState wxGetBatteryState() wxMemorySize wxGetFreeMemory() { void* pMemptr = NULL; - ULONG lSize; + LONG lSize; ULONG lMemFlags; APIRET rc; lMemFlags = PAG_FREE; - rc = ::DosQueryMem(pMemptr, &lSize, &lMemFlags); + rc = ::DosQueryMem(pMemptr, (PULONG)&lSize, &lMemFlags); if (rc != 0) lSize = -1L; return (wxMemorySize)lSize; @@ -431,7 +431,7 @@ wxChar* wxGetUserHome ( char *wxBuffer = new wxChar[256]; #ifndef __EMX__ - if (sUser1 != _T("")) + if (!sUser1.empty()) { wxChar zTmp[64]; @@ -453,7 +453,7 @@ wxChar* wxGetUserHome ( } } #endif - if (sUser1 == _T("")) + if (sUser1.empty()) { if ((zHome = wxGetenv(_T("HOME"))) != NULL) { @@ -468,13 +468,6 @@ wxChar* wxGetUserHome ( return NULL; // No home known! } -bool wxDirExists( - const wxString& rDir -) -{ - return (::DosSetCurrentDir(WXSTRINGCAST rDir)); -} - wxString WXDLLEXPORT wxPMErrorToStr( ERRORID vError )