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
b4c68726
Commit
b4c68726
authored
Jun 08, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Louis-Philippe Gagnon (of Macadamian for Corel)
Search for already loaded CursorIcon was done with the wrong handle, so it was leaking icons. Fixed.
parent
c107f714
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
cursoricon.c
windows/cursoricon.c
+6
-5
No files found.
windows/cursoricon.c
View file @
b4c68726
...
...
@@ -739,11 +739,6 @@ HGLOBAL CURSORICON_Load( HINSTANCE hInstance, LPCWSTR name,
fCursor
?
RT_GROUP_CURSORW
:
RT_GROUP_ICONW
)))
return
0
;
hGroupRsrc
=
hRsrc
;
/* If shared icon, check whether it was already loaded */
if
(
(
loadflags
&
LR_SHARED
)
&&
(
h
=
CURSORICON_FindSharedIcon
(
hInstance
,
hRsrc
)
)
!=
0
)
return
h
;
/* Find the best entry in the directory */
...
...
@@ -764,6 +759,12 @@ HGLOBAL CURSORICON_Load( HINSTANCE hInstance, LPCWSTR name,
if
(
!
(
hRsrc
=
FindResourceW
(
hInstance
,
MAKEINTRESOURCEW
(
wResId
),
fCursor
?
RT_CURSORW
:
RT_ICONW
)))
return
0
;
/* If shared icon, check whether it was already loaded */
if
(
(
loadflags
&
LR_SHARED
)
&&
(
h
=
CURSORICON_FindSharedIcon
(
hInstance
,
hRsrc
)
)
!=
0
)
return
h
;
if
(
!
(
handle
=
LoadResource
(
hInstance
,
hRsrc
)))
return
0
;
bits
=
(
LPBYTE
)
LockResource
(
handle
);
h
=
CURSORICON_CreateFromResource
(
0
,
0
,
bits
,
dwBytesInRes
,
...
...
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