]> granicus.if.org Git - libevent/commitdiff
Fix win32 build of http-server.c with unicode enabled
authorNick Mathewson <nickm@torproject.org>
Tue, 30 Nov 2010 05:53:16 +0000 (00:53 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 30 Nov 2010 05:53:16 +0000 (00:53 -0500)
sample/http-server.c

index e4df3efa824521b17115122ca331514811bc7a3f..63e434d097264de0ddf769c7970050c9f74ec358 100644 (file)
@@ -247,7 +247,7 @@ send_document_cb(struct evhttp_request *req, void *arg)
                            "    <li><a href=\"%s\">%s</a>\n",
                            name, name);/* XXX escape this */
 #ifdef WIN32
-               } while (FindNextFile(d, &ent));
+               } while (FindNextFileA(d, &ent));
 #else
                }
 #endif