Index: lib/Fuzzer/FuzzerIOWindows.cpp =================================================================== --- lib/Fuzzer/FuzzerIOWindows.cpp +++ lib/Fuzzer/FuzzerIOWindows.cpp @@ -21,6 +21,7 @@ #include #include #include +#include namespace fuzzer { @@ -140,7 +141,12 @@ } std::string DirName(const std::string &FileName) { - assert(0 && "Unimplemented"); + char *Tmp = new char[FileName.size() + 1]; + memcpy(Tmp, FileName.c_str(), FileName.size() + 1); + PathRemoveFileSpecA(Tmp); + std::string Res(Tmp); + delete [] Tmp; + return Res; } } // namespace fuzzer