Need an explicit truncate command to shorten the length of a file.
This commit is contained in:
parent
dc4f752e9d
commit
137e54dd51
|
@ -165,6 +165,7 @@ static VOID DoSaveFile(VOID)
|
|||
else
|
||||
SendMessage(Globals.hEdit, EM_SETMODIFY, FALSE, 0);
|
||||
|
||||
SetEndOfFile(hFile);
|
||||
CloseHandle(hFile);
|
||||
HeapFree(GetProcessHeap(), 0, pTemp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue