From ba3fbdb8845122a720811d979ea748d715b91153 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 26 Oct 2026 08:41:45 -0700
Subject: [PATCH] Not having a property shouldn't trigger an assert with
SDL_ASSERT_INVALID_PARAMS
---
src/SDL_properties.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/SDL_properties.c b/src/SDL_properties.c
index f5dbd267d37f7..30f0bff5938c8 100644
--- a/src/SDL_properties.c
+++ b/src/SDL_properties.c
@@ -597,7 +597,7 @@ bool SDL_HasProperty(SDL_PropertiesID props, const char *name)
static bool SDL_SetupPropertyQuery(SDL_PropertiesID props, const char *name, SDL_Properties **properties)
{
- CHECK_PARAM(!props) {
+ if(!props) {
return false;
}
CHECK_PARAM(!name || !*name) {