mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 17:13:38 +00:00
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
|
else
|
||||||
SendMessage(Globals.hEdit, EM_SETMODIFY, FALSE, 0);
|
SendMessage(Globals.hEdit, EM_SETMODIFY, FALSE, 0);
|
||||||
|
|
||||||
|
SetEndOfFile(hFile);
|
||||||
CloseHandle(hFile);
|
CloseHandle(hFile);
|
||||||
HeapFree(GetProcessHeap(), 0, pTemp);
|
HeapFree(GetProcessHeap(), 0, pTemp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue