SDL: Fixed crash when using invalid property IDs

From 9496c0cfa1245d6f186fbff57b536fc1f7cf4d3b Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 24 Oct 2026 07:47:24 -0700
Subject: [PATCH] Fixed crash when using invalid property IDs

Fixes https://github.com/libsdl-org/SDL/issues/16583
---
 src/SDL_properties.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/SDL_properties.c b/src/SDL_properties.c
index 141e865b92c58..f5dbd267d37f7 100644
--- a/src/SDL_properties.c
+++ b/src/SDL_properties.c
@@ -351,7 +351,7 @@ static bool SDL_SetupPropertyAssignment(SDL_PropertiesID props, const char *name
     }
 
     SDL_FindInHashTable(SDL_properties, (const void *)(uintptr_t)props, (const void **)properties);
-    CHECK_PARAM(!properties) {
+    if (!(*properties)) {
         return SDL_InvalidParamError("props");
     }
 
@@ -605,7 +605,7 @@ static bool SDL_SetupPropertyQuery(SDL_PropertiesID props, const char *name, SDL
     }
 
     SDL_FindInHashTable(SDL_properties, (const void *)(uintptr_t)props, (const void **)properties);
-    CHECK_PARAM(!properties) {
+    if (!(*properties)) {
         return false;
     }