Commit 54c5d84b authored by Benjamin Peterson's avatar Benjamin Peterson

merge 2.7.9 release branch

parents c354285f 209dd468
......@@ -1742,6 +1742,16 @@ static BOOL OpenLogfile(char *dir)
sprintf(buffer, "%s\\%s-wininst.log", dir, meta_name);
logfile = fopen(buffer, "a");
if (!logfile) {
char error[1024];
sprintf(error, "Can't create \"%s\" (%s).\n\n"
"Try to execute the installer as administrator.",
buffer, strerror(errno));
MessageBox(GetFocus(), error, NULL, MB_OK | MB_ICONSTOP);
return FALSE;
}
time(&ltime);
now = localtime(&ltime);
strftime(buffer, sizeof(buffer),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment