bkaradzic/bgfx — pull request #88 by sgraham (2014-04-17 04:06:45+00:00)
Title: Use NULL as instance when loading predefined icon/cursor

Per http://msdn.microsoft.com/en-us/library/windows/desktop/ms648391(v=vs.85).aspx

"To use one of the predefined cursors, the application must set the hInstance parameter to NULL and the lpCursorName parameter to one the following values."

When set to GetModuleHandle(NULL) these fail and return NULL. As WM_SETCURSOR isn't handled elsewhere the cursor isn't otherwise set and ends up being whatever something else set (generally the last thing the non-client area sets as the cursor moves into the client area).