1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 10:48:51 -05:00
glfw/src
A. Tombs 8542f8dd84 Win32: Cleanup pointer test in win32_window.c
MSVC 2019 complains that the code at line 1744
(`GetMonitorInfo(window->monitor->win32.handle, &mi);`) can potentially
dereference a null pointer. The compiler is wrong in this case (it has
not spotted that `monitor` and `window->monitor` must be equal), but
I think it makes sense for our non-NULL test to be on the variable we
actually use rather than the one it was set from.

Related to #1491.

(cherry picked from commit 1d62157268)
2019-07-16 14:39:02 +02:00
..
CMakeLists.txt Move to the modern CMake project version option 2019-05-19 18:30:58 +02:00
cocoa_init.m Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
cocoa_joystick.h Fix copyright years (somewhat) 2019-04-15 20:50:00 +02:00
cocoa_joystick.m Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
cocoa_monitor.m Convert some declarations to C99 style 2019-07-16 14:38:26 +02:00
cocoa_platform.h Fix copyright years (somewhat) 2019-04-15 20:50:00 +02:00
cocoa_time.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
cocoa_window.m Convert some declarations to C99 style 2019-07-16 14:38:26 +02:00
context.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
egl_context.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
egl_context.h Replace some tabs with spaces 2019-07-16 14:38:14 +02:00
glfw_config.h.in Mir: Remove this experimental backend 2018-10-05 11:59:26 +02:00
glfw3.pc.in Move to the modern CMake project version option 2019-05-19 18:30:58 +02:00
glfw3Config.cmake.in Include imported targets into module config file 2016-02-02 06:00:18 +01:00
glx_context.c Remove pointless comments 2019-05-27 16:34:23 +02:00
glx_context.h Replace some tabs with spaces 2019-07-16 14:38:14 +02:00
init.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
input.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
internal.h Replace some tabs with spaces 2019-07-16 14:38:14 +02:00
linux_joystick.c Convert some declarations to C99 style 2019-07-16 14:38:26 +02:00
linux_joystick.h Add support for SDL_GameControllerDB 2017-07-07 15:52:33 +02:00
mappings.h Fix copyright years (somewhat) 2019-04-15 20:50:00 +02:00
mappings.h.in Fix copyright years (somewhat) 2019-04-15 20:50:00 +02:00
monitor.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
nsgl_context.h Fix copyright years (somewhat) 2019-04-15 20:50:00 +02:00
nsgl_context.m Remove pointless comments 2019-05-27 16:34:23 +02:00
null_init.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
null_joystick.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
null_joystick.h Fix copyright years (somewhat) 2019-04-15 20:50:00 +02:00
null_monitor.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
null_platform.h Fix copyright years (somewhat) 2019-04-15 20:50:00 +02:00
null_window.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
osmesa_context.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
osmesa_context.h Fix copyright years (somewhat) 2019-04-15 20:50:00 +02:00
posix_thread.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
posix_thread.h Fix copyright years (somewhat) 2019-04-15 20:50:00 +02:00
posix_time.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
posix_time.h Fix copyright years (somewhat) 2019-04-15 20:50:00 +02:00
vulkan.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
wgl_context.c Remove pointless comments 2019-05-27 16:34:23 +02:00
wgl_context.h WGL: Add extension function macro aliases 2019-05-27 16:33:59 +02:00
win32_init.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
win32_joystick.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
win32_joystick.h Fix copyright years (somewhat) 2019-04-15 20:50:00 +02:00
win32_monitor.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
win32_platform.h Replace some tabs with spaces 2019-07-16 14:38:14 +02:00
win32_thread.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
win32_time.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
win32_window.c Win32: Cleanup pointer test in win32_window.c 2019-07-16 14:39:02 +02:00
window.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
wl_init.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
wl_monitor.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
wl_platform.h Wayland: Fix auto-iconify on kwin_wayland 2019-02-15 18:12:09 +01:00
wl_window.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
x11_init.c X11: Clean up EWMH feature detection 2019-07-16 14:38:48 +02:00
x11_monitor.c Convert some declarations to C99 style 2019-07-16 14:38:26 +02:00
x11_platform.h X11: Clean up EWMH feature detection 2019-07-16 14:38:48 +02:00
x11_window.c X11: Let the language initialize XEvent structs 2019-07-16 14:38:55 +02:00
xkb_unicode.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
xkb_unicode.h Remove internal header inclusion guards 2017-05-25 19:35:13 +02:00