wordpad: Clear formatting before opening a file.

This commit is contained in:
Alexander Nicolaysen Sørnes 2007-07-18 22:31:14 +02:00 committed by Alexandre Julliard
parent bbc20456aa
commit 54a5aed7b4
1 changed files with 1 additions and 0 deletions

View File

@ -495,6 +495,7 @@ static void DoOpenFile(LPCWSTR szOpenFileName)
es.dwCookie = (DWORD_PTR)hFile;
es.pfnCallback = stream_in;
clear_formatting();
SendMessageW(hEditorWnd, EM_STREAMIN, format, (LPARAM)&es);
CloseHandle(hFile);