Index: lib/Fuzzer/FuzzerIOWindows.cpp =================================================================== --- lib/Fuzzer/FuzzerIOWindows.cpp +++ lib/Fuzzer/FuzzerIOWindows.cpp @@ -287,7 +287,17 @@ return FileName.substr(0, LocationLen + DirLen); } -std::string TmpDir() { return "TODO: implement TmpDir"; } +std::string TmpDir() { + std::string Tmp; + Tmp.resize(MAX_PATH + 1); + DWORD Size = GetTempPathA(Tmp.size(), &Tmp[0]); + if (Size == 0) { + Printf("Couldn't get Tmp path.\n"); + exit(1); + } + Tmp.resize(Size); + return Tmp; +} bool IsInterestingCoverageFile(const std::string &FileName) { if (FileName.find("Program Files") != std::string::npos)