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
1 changed files with 1 additions and 0 deletions

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);
}