From: Lectem Date: Sun, 23 Nov 2014 21:58:11 +0000 (+0100) Subject: added svcCloseHandle to FSDIR_Close() X-Git-Tag: v0.2.0~28^2 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=3a47113dab3f6754140a58f022d2448a53c48593;p=corbenik%2Fctrulib.git added svcCloseHandle to FSDIR_Close() FSDIR_Close() and FSFILE_Close() should have the same behavior --- diff --git a/libctru/source/services/fs.c b/libctru/source/services/fs.c index 27f3e06..51af7b5 100644 --- a/libctru/source/services/fs.c +++ b/libctru/source/services/fs.c @@ -1331,6 +1331,7 @@ FSDIR_Close(Handle handle) Result ret = 0; if((ret = svcSendSyncRequest(handle))) return ret; - - return cmdbuf[1]; + ret = cmdbuf[1]; + if(!ret)ret = svcCloseHandle(handle); + return ret; }