(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:
parent
6f51053336
commit
f1d9a5eba3
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue