mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-22 06:04:10 +00:00
Portability fix.
This commit is contained in:
parent
93bfa0d6b1
commit
fa679847ed
|
@ -242,6 +242,13 @@ int convert_to_res ()
|
|||
|
||||
fclose(fin);
|
||||
fclose(ftemp);
|
||||
|
||||
if (unlink(g_lpstrInputFile) == -1)
|
||||
{
|
||||
perror("unlink");
|
||||
unlink(tmpfile);
|
||||
return 0;
|
||||
}
|
||||
if (rename(tmpfile, g_lpstrInputFile) == -1)
|
||||
{
|
||||
perror("rename");
|
||||
|
|
Loading…
Reference in a new issue