- Fixed building with vanilla MinGW, at least with whatever modified header files that my system has from my last experimentation.

This commit is contained in:
Braden Obrzut 2016-11-24 00:47:53 -05:00
commit dc11b63157
3 changed files with 17 additions and 4 deletions

View file

@ -1314,7 +1314,7 @@ static HCURSOR CreateCompatibleCursor(FTexture *cursorpic)
HDC dc = GetDC(NULL);
if (dc == NULL)
{
return false;
return nullptr;
}
HDC and_mask_dc = CreateCompatibleDC(dc);
HDC xor_mask_dc = CreateCompatibleDC(dc);
@ -1721,7 +1721,7 @@ FString I_GetLongPathName(FString shortpath)
using OptWin32::GetLongPathNameA;
// Doesn't exist on NT4
if (!GetLongPathName)
if (!GetLongPathNameA)
return shortpath;
DWORD buffsize = GetLongPathNameA(shortpath.GetChars(), NULL, 0);