From: Nick Mathewson Date: Fri, 29 Aug 2014 18:31:07 +0000 (-0400) Subject: Use FindClose for handle from FindFirstFile in http-server.c X-Git-Tag: release-2.0.22-stable~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6466e88ac1dac48eaa9435ce9a45d6496eed7abb;p=libevent Use FindClose for handle from FindFirstFile in http-server.c Noted by Miles Chan as issue #145 --- diff --git a/sample/http-server.c b/sample/http-server.c index 916f6d4c..a63f3e91 100644 --- a/sample/http-server.c +++ b/sample/http-server.c @@ -264,7 +264,7 @@ send_document_cb(struct evhttp_request *req, void *arg) #endif evbuffer_add_printf(evb, "\n"); #ifdef WIN32 - CloseHandle(d); + FindClose(d); #else closedir(d); #endif