(info, apro) [_WIN32]: Correct parameter order for calls

to logerror() where GetLastError() is used.
Change the format to "lu" for printing GetLastError().
This commit is contained in:
Ron Koenderink 2006-01-01 19:47:46 +00:00
parent 6f51053336
commit f1d9a5eba3

View file

@ -326,8 +326,8 @@ info(void)
break;
default:
pr("Error reading info dir\n");
logerror("Error (%d) reading info dir(%s)\\file(%s)",
infodir, filename, GetLastError());
logerror("Error (%lu) reading info dir(%s)\\file(%s)",
GetLastError(), infodir, filename);
}
return RET_SYS;
}
@ -429,8 +429,8 @@ apro(void)
logerror("Can't open info dir \"%s\"", infodir);
} else {
pr("Error reading info dir\n");
logerror("Error (%d) reading info dir(%s)\\file(%s)",
infodir, filename, GetLastError());
logerror("Error (%lu) reading info dir(%s)\\file(%s)",
GetLastError(), infodir, filename);
}
return RET_SYS;
}