mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 20:27:55 +00:00
[WINESYNC][COMCTL32] Don't delete font when destroying the control (#7941)
The font object `infoPtr->Font` is not owned by the `syslink` control, therefore freeing it would make the whole system use a different font. The fix provided by Wine removes the code that deletes this font object.
Imports Wine commit 480598680c
Fixes deleting system font object when destroying syslink. CORE-20127
This commit is contained in:
parent
a9ba54f678
commit
21d3e290b7
1 changed files with 2 additions and 0 deletions
|
@ -1719,7 +1719,9 @@ static LRESULT WINAPI SysLinkWindowProc(HWND hwnd, UINT message,
|
|||
case WM_DESTROY:
|
||||
TRACE("SysLink Ctrl destruction, hwnd=%p\n", hwnd);
|
||||
SYSLINK_ClearDoc(infoPtr);
|
||||
#ifndef __REACTOS__
|
||||
if(infoPtr->Font != 0) DeleteObject(infoPtr->Font);
|
||||
#endif
|
||||
if(infoPtr->LinkFont != 0) DeleteObject(infoPtr->LinkFont);
|
||||
SetWindowLongPtrW(hwnd, 0, 0);
|
||||
Free (infoPtr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue