Commit 54a5aed7 authored by Alexander Nicolaysen Sørnes's avatar Alexander Nicolaysen Sørnes Committed by Alexandre Julliard

wordpad: Clear formatting before opening a file.

parent bbc20456
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment