Fix compiling on MinGW (broke in [r6394])

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6397 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien 2022-05-14 15:10:22 +00:00
parent 66dcb86e5f
commit ca4bbcb71f

View File

@ -1580,7 +1580,7 @@ void CIrrDeviceWin32::getWindowsVersion(core::stringc& out)
{ {
if (osvi.dwMajorVersion == 6) if (osvi.dwMajorVersion == 6)
{ {
DWORD dwType = PRODUCT_UNDEFINED; DWORD dwType = 0; // (PRODUCT_UNDEFINED not available on MinGW)
HMODULE hmKernel32 = GetModuleHandle(TEXT("kernel32.dll")); HMODULE hmKernel32 = GetModuleHandle(TEXT("kernel32.dll"));
if ( hmKernel32 ) if ( hmKernel32 )
{ {