]> Chaos Git - corbenik/ctrulib.git/commitdiff
Removed an unused debug line in httpc.c. Set the httpc servhandle to zero in httpcExi...
authoryellows8 <yellows8@users.noreply.github.com>
Thu, 29 Oct 2015 19:21:08 +0000 (15:21 -0400)
committeryellows8 <yellows8@users.noreply.github.com>
Thu, 29 Oct 2015 19:21:08 +0000 (15:21 -0400)
libctru/include/3ds/services/httpc.h
libctru/source/services/httpc.c

index 4a16702e9c27934b25a7f6270054b857decc8b76..27e0feda62cb2652d5d34229582ace061ca89876 100644 (file)
@@ -15,7 +15,7 @@ typedef enum{
 Result httpcInit();
 void httpcExit();
 
-Result httpcOpenContext(httpcContext *context, char* url, u32 use_defaultproxy);//use_defaultproxy should be zero normally, unless you don't want HTTPC_SetProxyDefault() to be used automatically.
+Result httpcOpenContext(httpcContext *context, char* url, u32 use_defaultproxy);//use_defaultproxy should be non-zero normally, unless you don't want HTTPC_SetProxyDefault() to be used automatically.
 Result httpcCloseContext(httpcContext *context);
 Result httpcAddRequestHeaderField(httpcContext *context, char* name, char* value);
 Result httpcBeginRequest(httpcContext *context);
index c8863e85d3c85a5b24fbdf513b45991c492ee6c9..a8a07ba4f456f3445b19cd100c16082b036fca58 100644 (file)
@@ -13,8 +13,6 @@ Result httpcInit()
        if(__httpc_servhandle)return 0;
        if((ret=srvGetServiceHandle(&__httpc_servhandle, "http:C")))return ret;
 
-       //*((u32*)0x600) = __httpc_servhandle;
-
        ret = HTTPC_Initialize(__httpc_servhandle);
        if(ret!=0)return ret;
 
@@ -26,6 +24,8 @@ void httpcExit()
        if(__httpc_servhandle==0)return;
 
        svcCloseHandle(__httpc_servhandle);
+
+       __httpc_servhandle = 0;
 }
 
 Result httpcOpenContext(httpcContext *context, char* url, u32 use_defaultproxy)