]> granicus.if.org Git - libevent/commitdiff
Use FindClose for handle from FindFirstFile in http-server.c
authorNick Mathewson <nickm@torproject.org>
Fri, 29 Aug 2014 18:31:07 +0000 (14:31 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 29 Aug 2014 18:31:07 +0000 (14:31 -0400)
Noted by Miles Chan as issue #145

sample/http-server.c

index 916f6d4c1f0f4877521b5d363bae4bd61fd9d013..a63f3e9125dfe1babf125442f797c15d85fd8858 100644 (file)
@@ -264,7 +264,7 @@ send_document_cb(struct evhttp_request *req, void *arg)
 #endif
                evbuffer_add_printf(evb, "</ul></body></html>\n");
 #ifdef WIN32
-               CloseHandle(d);
+               FindClose(d);
 #else
                closedir(d);
 #endif