mirror of
https://github.com/glfw/glfw.git
synced 2025-04-05 05:25:07 +00:00
validate nItems & prop in _glfwGetWindowIsFullscreenX11
This commit is contained in:
parent
8c3f416c3b
commit
955e8b0fa4
83 changed files with 5 additions and 0 deletions
BIN
.cache/clangd/index/allocator.c.B616F4E3C4047C4E.idx
Normal file
BIN
.cache/clangd/index/allocator.c.B616F4E3C4047C4E.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/boing.c.F4509558BEFB33AA.idx
Normal file
BIN
.cache/clangd/index/boing.c.F4509558BEFB33AA.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/clipboard.c.38C2FF7849932163.idx
Normal file
BIN
.cache/clangd/index/clipboard.c.38C2FF7849932163.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/context.c.8868CA8BE734E168.idx
Normal file
BIN
.cache/clangd/index/context.c.8868CA8BE734E168.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/cursor.c.C4342C5AAE7ABA5B.idx
Normal file
BIN
.cache/clangd/index/cursor.c.C4342C5AAE7ABA5B.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/egl_context.c.1DE6F415CF251F7C.idx
Normal file
BIN
.cache/clangd/index/egl_context.c.1DE6F415CF251F7C.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/empty.c.F3A66E1F5E572CB3.idx
Normal file
BIN
.cache/clangd/index/empty.c.F3A66E1F5E572CB3.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/events.c.2B4F4D13DDECB0A8.idx
Normal file
BIN
.cache/clangd/index/events.c.2B4F4D13DDECB0A8.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/gamma.c.58F06446A9FD125F.idx
Normal file
BIN
.cache/clangd/index/gamma.c.58F06446A9FD125F.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/gears.c.7A8EA731F29B9CE4.idx
Normal file
BIN
.cache/clangd/index/gears.c.7A8EA731F29B9CE4.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/getopt.c.5C5B5ADC05179932.idx
Normal file
BIN
.cache/clangd/index/getopt.c.5C5B5ADC05179932.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/getopt.h.705D38A3B0790258.idx
Normal file
BIN
.cache/clangd/index/getopt.h.705D38A3B0790258.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/gl.h.A21206B2F7D29A32.idx
Normal file
BIN
.cache/clangd/index/gl.h.A21206B2F7D29A32.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/gles2.h.85A8817C6C8790EA.idx
Normal file
BIN
.cache/clangd/index/gles2.h.85A8817C6C8790EA.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/glfw3.h.700A5CB1ACA6282B.idx
Normal file
BIN
.cache/clangd/index/glfw3.h.700A5CB1ACA6282B.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/glfw3native.h.0F04669A5B2D974A.idx
Normal file
BIN
.cache/clangd/index/glfw3native.h.0F04669A5B2D974A.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/glfwinfo.c.78F7BE697F97BAAB.idx
Normal file
BIN
.cache/clangd/index/glfwinfo.c.78F7BE697F97BAAB.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/glx_context.c.114A9D8ABFAE0984.idx
Normal file
BIN
.cache/clangd/index/glx_context.c.114A9D8ABFAE0984.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/heightmap.c.BD9FC83DB652B9AD.idx
Normal file
BIN
.cache/clangd/index/heightmap.c.BD9FC83DB652B9AD.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/icon.c.3EC57FCE758DC296.idx
Normal file
BIN
.cache/clangd/index/icon.c.3EC57FCE758DC296.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/iconify.c.176F922B50F6FB13.idx
Normal file
BIN
.cache/clangd/index/iconify.c.176F922B50F6FB13.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/init.c.64AC3B7482D93956.idx
Normal file
BIN
.cache/clangd/index/init.c.64AC3B7482D93956.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/input.c.D5BBFB05FDD5B1E9.idx
Normal file
BIN
.cache/clangd/index/input.c.D5BBFB05FDD5B1E9.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/inputlag.c.9755385DC7076B2D.idx
Normal file
BIN
.cache/clangd/index/inputlag.c.9755385DC7076B2D.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/internal.h.F19E546CD36F3522.idx
Normal file
BIN
.cache/clangd/index/internal.h.F19E546CD36F3522.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/joysticks.c.DCE14D943F383BC3.idx
Normal file
BIN
.cache/clangd/index/joysticks.c.DCE14D943F383BC3.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/linmath.h.B91C1C1FDB78D85E.idx
Normal file
BIN
.cache/clangd/index/linmath.h.B91C1C1FDB78D85E.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/linux_joystick.c.F6DE0B5D7EA77ED5.idx
Normal file
BIN
.cache/clangd/index/linux_joystick.c.F6DE0B5D7EA77ED5.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/linux_joystick.h.74B6AC7F50488FBC.idx
Normal file
BIN
.cache/clangd/index/linux_joystick.h.74B6AC7F50488FBC.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/mappings.h.7AE7BEA5EFC26F99.idx
Normal file
BIN
.cache/clangd/index/mappings.h.7AE7BEA5EFC26F99.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/monitor.c.1538BB2B30FA8147.idx
Normal file
BIN
.cache/clangd/index/monitor.c.1538BB2B30FA8147.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/monitors.c.F3F05AA4758B7BDC.idx
Normal file
BIN
.cache/clangd/index/monitors.c.F3F05AA4758B7BDC.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/msaa.c.1A0E83331415EFF7.idx
Normal file
BIN
.cache/clangd/index/msaa.c.1A0E83331415EFF7.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/nuklear.h.0E82595F0B42F4E7.idx
Normal file
BIN
.cache/clangd/index/nuklear.h.0E82595F0B42F4E7.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/nuklear_glfw_gl2.h.1AF3CF8753463C16.idx
Normal file
BIN
.cache/clangd/index/nuklear_glfw_gl2.h.1AF3CF8753463C16.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/null_init.c.323AB8859D36E8EE.idx
Normal file
BIN
.cache/clangd/index/null_init.c.323AB8859D36E8EE.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/null_joystick.c.40CFB1446203DE4C.idx
Normal file
BIN
.cache/clangd/index/null_joystick.c.40CFB1446203DE4C.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/null_joystick.h.4249CAA76AAC537C.idx
Normal file
BIN
.cache/clangd/index/null_joystick.h.4249CAA76AAC537C.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/null_monitor.c.06B9B06FAA05E198.idx
Normal file
BIN
.cache/clangd/index/null_monitor.c.06B9B06FAA05E198.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/null_platform.h.8C163C2CCC063C0D.idx
Normal file
BIN
.cache/clangd/index/null_platform.h.8C163C2CCC063C0D.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/null_window.c.066CBE6CBCD1D277.idx
Normal file
BIN
.cache/clangd/index/null_window.c.066CBE6CBCD1D277.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/offscreen.c.C7A4EF30090A0752.idx
Normal file
BIN
.cache/clangd/index/offscreen.c.C7A4EF30090A0752.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/osmesa_context.c.559C5F2E8BDC7119.idx
Normal file
BIN
.cache/clangd/index/osmesa_context.c.559C5F2E8BDC7119.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/particles.c.4AA69DD048A0C52D.idx
Normal file
BIN
.cache/clangd/index/particles.c.4AA69DD048A0C52D.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/platform.c.D05FE871FB38E7CB.idx
Normal file
BIN
.cache/clangd/index/platform.c.D05FE871FB38E7CB.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/platform.h.1E6FD6B6A6689A62.idx
Normal file
BIN
.cache/clangd/index/platform.h.1E6FD6B6A6689A62.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/posix_module.c.FC584615BE953790.idx
Normal file
BIN
.cache/clangd/index/posix_module.c.FC584615BE953790.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/posix_poll.c.6D57F2939EDDA169.idx
Normal file
BIN
.cache/clangd/index/posix_poll.c.6D57F2939EDDA169.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/posix_poll.h.0636737AE4432B3F.idx
Normal file
BIN
.cache/clangd/index/posix_poll.h.0636737AE4432B3F.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/posix_thread.c.1F14B563604B64EB.idx
Normal file
BIN
.cache/clangd/index/posix_thread.c.1F14B563604B64EB.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/posix_thread.h.3FAFF4D108395659.idx
Normal file
BIN
.cache/clangd/index/posix_thread.h.3FAFF4D108395659.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/posix_time.c.DBD681B54253FB03.idx
Normal file
BIN
.cache/clangd/index/posix_time.c.DBD681B54253FB03.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/posix_time.h.5376C160E4E43D5A.idx
Normal file
BIN
.cache/clangd/index/posix_time.h.5376C160E4E43D5A.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/reopen.c.4404F4B74AD5EBA5.idx
Normal file
BIN
.cache/clangd/index/reopen.c.4404F4B74AD5EBA5.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/sharing.c.BDE1114965EF2FD0.idx
Normal file
BIN
.cache/clangd/index/sharing.c.BDE1114965EF2FD0.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/splitview.c.EBCBC5271DBEE9D6.idx
Normal file
BIN
.cache/clangd/index/splitview.c.EBCBC5271DBEE9D6.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/stb_image_write.h.3693BD4FC01C5371.idx
Normal file
BIN
.cache/clangd/index/stb_image_write.h.3693BD4FC01C5371.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/tearing.c.0DF584D7B9F03055.idx
Normal file
BIN
.cache/clangd/index/tearing.c.0DF584D7B9F03055.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/threads.c.2743FFC8EB02EB32.idx
Normal file
BIN
.cache/clangd/index/threads.c.2743FFC8EB02EB32.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/timeout.c.43A32068452F4D25.idx
Normal file
BIN
.cache/clangd/index/timeout.c.43A32068452F4D25.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/tinycthread.c.F8642B4A219DD8FE.idx
Normal file
BIN
.cache/clangd/index/tinycthread.c.F8642B4A219DD8FE.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/tinycthread.h.A65A2EBEC99C1DB1.idx
Normal file
BIN
.cache/clangd/index/tinycthread.h.A65A2EBEC99C1DB1.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/title.c.325989D8AD7CF1D6.idx
Normal file
BIN
.cache/clangd/index/title.c.325989D8AD7CF1D6.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/triangle-opengl.c.45F096FA08030223.idx
Normal file
BIN
.cache/clangd/index/triangle-opengl.c.45F096FA08030223.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/triangle-opengles.c.66546CC7F921B6FD.idx
Normal file
BIN
.cache/clangd/index/triangle-opengles.c.66546CC7F921B6FD.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/triangle-vulkan.c.3DCFCBAC9B4AE8F8.idx
Normal file
BIN
.cache/clangd/index/triangle-vulkan.c.3DCFCBAC9B4AE8F8.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vulkan.c.663F24EE50C68BCC.idx
Normal file
BIN
.cache/clangd/index/vulkan.c.663F24EE50C68BCC.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/vulkan.h.93A8BE163A5E1D02.idx
Normal file
BIN
.cache/clangd/index/vulkan.h.93A8BE163A5E1D02.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/wave.c.FD555F6721CA0E03.idx
Normal file
BIN
.cache/clangd/index/wave.c.FD555F6721CA0E03.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/window.c.2FA19F7284CCED53.idx
Normal file
BIN
.cache/clangd/index/window.c.2FA19F7284CCED53.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/window.c.77D02E4FE361C984.idx
Normal file
BIN
.cache/clangd/index/window.c.77D02E4FE361C984.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/windows.c.03B4333FD8DC55E2.idx
Normal file
BIN
.cache/clangd/index/windows.c.03B4333FD8DC55E2.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/wl_init.c.A7FC8FB3263D528F.idx
Normal file
BIN
.cache/clangd/index/wl_init.c.A7FC8FB3263D528F.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/wl_monitor.c.A0CBFD664EE51A43.idx
Normal file
BIN
.cache/clangd/index/wl_monitor.c.A0CBFD664EE51A43.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/wl_platform.h.97242340F5129569.idx
Normal file
BIN
.cache/clangd/index/wl_platform.h.97242340F5129569.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/wl_window.c.224AF322C0B72CB8.idx
Normal file
BIN
.cache/clangd/index/wl_window.c.224AF322C0B72CB8.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/x11_init.c.673B36D2A3C77F83.idx
Normal file
BIN
.cache/clangd/index/x11_init.c.673B36D2A3C77F83.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/x11_monitor.c.6F64109EC5FB445B.idx
Normal file
BIN
.cache/clangd/index/x11_monitor.c.6F64109EC5FB445B.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/x11_platform.h.125DE95D68C6E928.idx
Normal file
BIN
.cache/clangd/index/x11_platform.h.125DE95D68C6E928.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/x11_window.c.E649D493FE59D448.idx
Normal file
BIN
.cache/clangd/index/x11_window.c.E649D493FE59D448.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/xkb_unicode.c.B32E55B04EC89376.idx
Normal file
BIN
.cache/clangd/index/xkb_unicode.c.B32E55B04EC89376.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/xkb_unicode.h.BD6820A92C673ED8.idx
Normal file
BIN
.cache/clangd/index/xkb_unicode.h.BD6820A92C673ED8.idx
Normal file
Binary file not shown.
|
@ -2756,6 +2756,11 @@ GLFWbool _glfwGetWindowIsFullscreenX11(_GLFWwindow* window)
|
|||
);
|
||||
|
||||
assert(result == Success);
|
||||
assert(nItems > 0);
|
||||
|
||||
if (!prop) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
GLFWbool isFullscreen = 0;
|
||||
for (int i = 0; i < nItems; i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue