Skip to content

Commit 6cfe229

Browse files
Use PostMessage in InstallFont to resolve deadlock
1 parent fe2d7ac commit 6cfe229

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

WindowsFunctions.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,10 @@ namespace WindowsFunctions
358358
{
359359
if (AddFontResourceA(fontPath))
360360
{
361-
SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
361+
PostMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
362362
return true;
363363
}
364364

365-
//blog(LOG_ERROR, "InstallFont: Failed, last error = %d\n", GetLastError());
366365
return false;
367366
}
368367

0 commit comments

Comments
 (0)