Update np_web_api_internal.cpp (#4025)
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions

This commit is contained in:
Stephen Miller 2026-02-11 15:22:38 -06:00 committed by GitHub
parent 7bdb5eb7e1
commit 0435ada3a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,7 +65,7 @@ s32 createLibraryContext(s32 libHttpCtxId, u64 poolSize, const char* name, s32 t
OrbisNpWebApiContext* findAndValidateContext(s32 libCtxId, s32 flag) {
std::scoped_lock lk{g_global_mutex};
if (libCtxId < 1 || libCtxId >= 0x8000) {
if (libCtxId < 1 || libCtxId >= 0x8000 || !g_contexts.contains(libCtxId)) {
return nullptr;
}
auto& context = g_contexts[libCtxId];