From 4cf20f4dbe287153730375befb76e2d2f1dc75c6 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 17:53:54 -0500 Subject: [PATCH] match(d_nhttp_private): NHTTPDeleteConnection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rewrite ConnectionStarted's null check as if/else so the inlined WaitConnection path matches beq/bne block order (null → -1 first). Before: 6/7 funcs, 908/1320 code bytes After: 7/7 funcs, 1320/1320 code bytes DOL sha1: 26116613f624061ba99c8d1a299aaa6efa85670d --- libs/RevoEX/src/nhttp/d_nhttp_private.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/RevoEX/src/nhttp/d_nhttp_private.c b/libs/RevoEX/src/nhttp/d_nhttp_private.c index b8086aae..b1e86030 100644 --- a/libs/RevoEX/src/nhttp/d_nhttp_private.c +++ b/libs/RevoEX/src/nhttp/d_nhttp_private.c @@ -55,7 +55,13 @@ static s32 ConnectionStarted(NHTTPConnectionInfo* handle) { void* system=NHTTPi_GetSystemInfoP(); void* mutex=NHTTPi_GetMutexInfoP(system); NHTTPConnectionInfo* connection=NHTTPi_GetConnection(mutex,handle); - return connection ? connection->started : -1; + s32 started; + if (connection == NULL) { + started = -1; + } else { + started = connection->started; + } + return started; } static s32 ConnectionState(NHTTPConnectionInfo* handle) { -- 2.49.1