Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
19e27e95
Commit
19e27e95
authored
Apr 12, 2024
by
Alex Henrie
Committed by
Alexandre Julliard
Apr 16, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Fix font handle leaks in virtual desktop.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=56133
parent
4fc1591f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
desktop.c
programs/explorer/desktop.c
+4
-2
No files found.
programs/explorer/desktop.c
View file @
19e27e95
...
@@ -271,7 +271,8 @@ static void draw_launchers( HDC hdc, RECT update_rect )
...
@@ -271,7 +271,8 @@ static void draw_launchers( HDC hdc, RECT update_rect )
DT_CENTER
|
DT_WORDBREAK
|
DT_EDITCONTROL
|
DT_END_ELLIPSIS
);
DT_CENTER
|
DT_WORDBREAK
|
DT_EDITCONTROL
|
DT_END_ELLIPSIS
);
}
}
SelectObject
(
hdc
,
font
);
font
=
SelectObject
(
hdc
,
font
);
DeleteObject
(
font
);
SetTextColor
(
hdc
,
color
);
SetTextColor
(
hdc
,
color
);
SetBkMode
(
hdc
,
mode
);
SetBkMode
(
hdc
,
mode
);
}
}
...
@@ -433,7 +434,8 @@ static BOOL get_icon_text_metrics( HWND hwnd, TEXTMETRICW *tm )
...
@@ -433,7 +434,8 @@ static BOOL get_icon_text_metrics( HWND hwnd, TEXTMETRICW *tm )
SystemParametersInfoW
(
SPI_GETICONTITLELOGFONT
,
sizeof
(
lf
),
&
lf
,
0
);
SystemParametersInfoW
(
SPI_GETICONTITLELOGFONT
,
sizeof
(
lf
),
&
lf
,
0
);
hfont
=
SelectObject
(
hdc
,
CreateFontIndirectW
(
&
lf
)
);
hfont
=
SelectObject
(
hdc
,
CreateFontIndirectW
(
&
lf
)
);
ret
=
GetTextMetricsW
(
hdc
,
tm
);
ret
=
GetTextMetricsW
(
hdc
,
tm
);
SelectObject
(
hdc
,
hfont
);
hfont
=
SelectObject
(
hdc
,
hfont
);
DeleteObject
(
hfont
);
ReleaseDC
(
hwnd
,
hdc
);
ReleaseDC
(
hwnd
,
hdc
);
return
ret
;
return
ret
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment