From d5dca1ec3d86970d2d327eeafd022cae404a937b Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 18 Jun 2026 13:45:27 -0400 Subject: [PATCH] dos: Don't do parameter validation in SDL_SYS_GetPrefPath. The higher level did it already. --- src/filesystem/dos/SDL_sysfilesystem.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/filesystem/dos/SDL_sysfilesystem.c b/src/filesystem/dos/SDL_sysfilesystem.c index 78aa8f8d9e..9b66e5fa21 100644 --- a/src/filesystem/dos/SDL_sysfilesystem.c +++ b/src/filesystem/dos/SDL_sysfilesystem.c @@ -125,20 +125,11 @@ char *SDL_SYS_GetPrefPath(const char *org, const char *app) { char *result = NULL; size_t len; - if (!app) { - SDL_InvalidParamError("app"); - return NULL; - } - const char *base = SDL_GetBasePath(); if (!base) { return NULL; } - if (!org) { - org = ""; - } - len = SDL_strlen(base) + SDL_strlen(org) + SDL_strlen(app) + 4; result = (char *)SDL_malloc(len); if (result) {