Minor code cleanup

fixing trivial level 4 warnings

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6589 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien 2024-01-27 15:57:28 +00:00
parent 56db5a39ea
commit 67fa713038
2 changed files with 4 additions and 2 deletions

View File

@ -435,8 +435,9 @@ irr::core::stringc SJoystickWin32Control::findJoystickName(int index, const JOYC
RegCloseKey(hKey); RegCloseKey(hKey);
return result; return result;
#endif #else
return ""; return "";
#endif
} }
bool SJoystickWin32Control::activateJoysticks(core::array<SJoystickInfo> & joystickInfo) bool SJoystickWin32Control::activateJoysticks(core::array<SJoystickInfo> & joystickInfo)

View File

@ -297,7 +297,8 @@ bool CWGLManager::initialize(const SIrrlichtCreationParameters& params, const SE
// now get new window // now get new window
CurrentContext.OpenGLWin32.HWnd=videodata.OpenGLWin32.HWnd; CurrentContext.OpenGLWin32.HWnd=videodata.OpenGLWin32.HWnd;
// get hdc // get hdc
if (!(CurrentContext.OpenGLWin32.HDc=GetDC((HWND)videodata.OpenGLWin32.HWnd))) CurrentContext.OpenGLWin32.HDc=GetDC((HWND)videodata.OpenGLWin32.HWnd);
if (!CurrentContext.OpenGLWin32.HDc)
{ {
os::Printer::log("Cannot create a GL device context.", ELL_ERROR); os::Printer::log("Cannot create a GL device context.", ELL_ERROR);
return false; return false;