Fixes compile warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user