Windows: Fix some warnings.

This commit is contained in:
Diego Martinez 2015-07-08 16:18:11 -03:00 committed by est31
parent b51738177e
commit 13e100e1d8

@ -142,7 +142,7 @@ bool RecursiveDelete(const std::string &path)
infostream<<"RecursiveDelete: Deleting content of directory " infostream<<"RecursiveDelete: Deleting content of directory "
<<path<<std::endl; <<path<<std::endl;
std::vector<DirListNode> content = GetDirListing(path); std::vector<DirListNode> content = GetDirListing(path);
for(int i=0; i<content.size(); i++){ for(size_t i=0; i<content.size(); i++){
const DirListNode &n = content[i]; const DirListNode &n = content[i];
std::string fullpath = path + DIR_DELIM + n.name; std::string fullpath = path + DIR_DELIM + n.name;
bool did = RecursiveDelete(fullpath); bool did = RecursiveDelete(fullpath);
@ -183,7 +183,7 @@ bool DeleteSingleFileOrEmptyDirectory(const std::string &path)
std::string TempPath() std::string TempPath()
{ {
DWORD bufsize = GetTempPath(0, ""); DWORD bufsize = GetTempPath(0, NULL);
if(bufsize == 0){ if(bufsize == 0){
errorstream<<"GetTempPath failed, error = "<<GetLastError()<<std::endl; errorstream<<"GetTempPath failed, error = "<<GetLastError()<<std::endl;
return ""; return "";