File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ bool RecursiveDelete(const std::string &path)
142
142
infostream<<" RecursiveDelete: Deleting content of directory "
143
143
<<path<<std::endl;
144
144
std::vector<DirListNode> content = GetDirListing (path);
145
- for (int i=0 ; i<content.size (); i++){
145
+ for (size_t i=0 ; i<content.size (); i++){
146
146
const DirListNode &n = content[i];
147
147
std::string fullpath = path + DIR_DELIM + n.name ;
148
148
bool did = RecursiveDelete (fullpath);
@@ -183,7 +183,7 @@ bool DeleteSingleFileOrEmptyDirectory(const std::string &path)
183
183
184
184
std::string TempPath ()
185
185
{
186
- DWORD bufsize = GetTempPath (0 , " " );
186
+ DWORD bufsize = GetTempPath (0 , NULL );
187
187
if (bufsize == 0 ){
188
188
errorstream<<" GetTempPath failed, error = " <<GetLastError ()<<std::endl;
189
189
return " " ;
You can’t perform that action at this time.
0 commit comments