fixed mingw-w64 build

This commit is contained in:
Patrick von Reth 2011-01-24 00:21:10 +01:00
parent e371e20e09
commit 5a6886ddd7
1 changed files with 2 additions and 2 deletions

View File

@ -372,7 +372,7 @@ LONG32 SnarlInterface::GetVersion()
} }
HANDLE hProp = GetProp(hWnd, _T("_version")); HANDLE hProp = GetProp(hWnd, _T("_version"));
return reinterpret_cast<int>(hProp); return static_cast<LONG32>(reinterpret_cast<DWORD_PTR>(hProp));
} }
// static // static
@ -477,7 +477,7 @@ LONG32 SnarlInterface::Send(SnarlMessage msg)
// return result and cache LastError // return result and cache LastError
HANDLE hProp = GetProp(hWnd, _T("last_error")); HANDLE hProp = GetProp(hWnd, _T("last_error"));
localError = static_cast<SnarlEnums::SnarlStatus>(reinterpret_cast<int>(hProp)); localError = static_cast<SnarlEnums::SnarlStatus>(static_cast<LONG32>(reinterpret_cast<DWORD_PTR>(hProp)));
return nReturn; return nReturn;
} }