mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-04 14:07:52 +00:00
Windows: Fixed NULL check in native setupCursorClipping
This commit is contained in:
parent
b386d2185b
commit
403fd47e2e
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_WindowsDisplay_resetCursorClipping(
|
|||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_WindowsDisplay_setupCursorClipping(JNIEnv *env, jclass unused, jlong hwnd_ptr) {
|
||||
HWND hwnd = (HWND)(INT_PTR)hwnd_ptr;
|
||||
RECT hwnd_client;
|
||||
if (display_hwnd != NULL && GetWindowRect(hwnd, &hwnd_client) != 0) {
|
||||
if (hwnd != NULL && GetWindowRect(hwnd, &hwnd_client) != 0) {
|
||||
if (ClipCursor(&hwnd_client) == 0)
|
||||
throwFormattedException(env, "ClipCursor failed (%d)", GetLastError());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue