raylib/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
sleeptightAnsiC 34159399cf
[rcore] fix crash in InitWindow, due to unchecked result of InitPlatform (#4803)
* [rcore] fix crash in InitWindow, due to unchecked result of InitPlatform

Check the result of InitPlatform(), if it isn't 0, report the Error
and return. This prevent crashes and allows for gracefully aborting
or recovering by checking IsWindowReady().

Partially-fixes: https://github.com/raysan5/raylib/issues/4801

* [rcore] style: store the result of InitPlatform() before checking it

Small style change that doesn't impact how the code behaves here.
Variable 'result' is not used anywhere else in this block,
it's just for compliance with Raylib's coding conventions.

Requested in PR: https://github.com/raysan5/raylib/pull/4803#discussion_r1976502788

* [rcore] use LOG_WARNING when InitPlatform() fails

...as this is preferred over LOG_ERROR.

Requested-by: https://github.com/raysan5/raylib/pull/4803#discussion_r1976651724
2025-03-02 17:05:09 +01:00
..
external update RGFW to 1.6 (#4795) 2025-02-25 21:49:37 +01:00
platforms [desktop_glfw] fix InitPlatform crash caused by glfwCreateWindow... (#4804) 2025-03-01 23:42:07 +01:00
CMakeLists.txt install rcamera.h (#4603) 2024-12-15 11:16:08 +01:00
config.h Update year to 2025 2025-01-01 00:02:52 +01:00
Makefile Update RGFW and ensure it's consistent with the GLFW backend (#4783) 2025-02-21 12:32:09 +01:00
minshell.html REVIEWED: Code/Web-Makefile formatting 2025-01-12 16:19:10 +01:00
raudio.c [raudio] Fixed memory leak on early-return of WaveFormat func (#4779) 2025-02-21 15:29:12 +01:00
raylib.dll.rc Update year to 2025 2025-01-01 00:02:52 +01:00
raylib.dll.rc.data Update year to 2025 2025-01-01 00:02:52 +01:00
raylib.h [raylib.h] Added space after comma (#4774) 2025-02-17 12:12:59 +01:00
raylib.ico Update raylib.ico 2024-11-14 16:40:04 +01:00
raylib.rc Update year to 2025 2025-01-01 00:02:52 +01:00
raylib.rc.data Update year to 2025 2025-01-01 00:02:52 +01:00
raymath.h Update raymath.h 2025-02-23 23:07:12 +01:00
rcamera.h Update year to 2025 2025-01-01 00:02:52 +01:00
rcore.c [rcore] fix crash in InitWindow, due to unchecked result of InitPlatform (#4803) 2025-03-02 17:05:09 +01:00
rgestures.h Update year to 2025 2025-01-01 00:02:52 +01:00
rglfw.c Update year to 2025 2025-01-01 00:02:52 +01:00
rlgl.h Added some comments on latest change 2025-02-25 12:46:06 +01:00
rmodels.c Minor tweaks 2025-03-02 13:43:15 +01:00
rshapes.c Fix typo in rshapes.c (#4772) 2025-02-16 15:43:32 +01:00
rtext.c TextSubtext fixes (#4759) 2025-02-12 23:12:10 +01:00
rtextures.c Add missing increments of k in LoadImageDataNormalized() (#4745) 2025-02-01 21:30:21 +01:00
shell.html REVIEWED: Code/Web-Makefile formatting 2025-01-12 16:19:10 +01:00
utils.c Update year to 2025 2025-01-01 00:02:52 +01:00
utils.h Update year to 2025 2025-01-01 00:02:52 +01:00