1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

Need an explicit truncate command to shorten the length of a file.

This commit is contained in:
Jan Nieuwenhuizen 2005-10-26 10:07:05 +00:00 committed by Alexandre Julliard
parent dc4f752e9d
commit 137e54dd51

View File

@ -165,6 +165,7 @@ static VOID DoSaveFile(VOID)
else
SendMessage(Globals.hEdit, EM_SETMODIFY, FALSE, 0);
SetEndOfFile(hFile);
CloseHandle(hFile);
HeapFree(GetProcessHeap(), 0, pTemp);
}