Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ff04a5e8
Commit
ff04a5e8
authored
Dec 22, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Load the DestroyIcon32 function from 16-bit user.exe.
parent
0fbe20a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
resource16.c
dlls/kernel32/resource16.c
+13
-7
No files found.
dlls/kernel32/resource16.c
View file @
ff04a5e8
...
...
@@ -1105,15 +1105,13 @@ DWORD WINAPI SizeofResource16( HMODULE16 hModule, HRSRC16 hRsrc )
}
typedef
WORD
(
WINAPI
*
pDestroyIcon32Proc
)(
HGLOBAL16
handle
,
UINT16
flags
);
/**********************************************************************
* FreeResource (KERNEL.63)
*/
BOOL16
WINAPI
FreeResource16
(
HGLOBAL16
handle
)
{
pDestroyIcon32Proc
proc
;
HMODULE
user
;
FARPROC16
proc
;
HMODULE
16
user
;
NE_MODULE
*
pModule
=
NE_GetPtr
(
FarGetOwner16
(
handle
)
);
TRACE
(
"(%04x)
\n
"
,
handle
);
...
...
@@ -1149,9 +1147,17 @@ BOOL16 WINAPI FreeResource16( HGLOBAL16 handle )
/* If this failed, call USER.DestroyIcon32; this will check
whether it is a shared cursor/icon; if not it will call
GlobalFree16() */
user
=
GetModuleHandleA
(
"user32.dll"
);
if
(
user
&&
(
proc
=
(
pDestroyIcon32Proc
)
GetProcAddress
(
user
,
"DestroyIcon32"
)))
return
proc
(
handle
,
1
/*CID_RESOURCE*/
);
user
=
GetModuleHandle16
(
"user"
);
if
(
user
&&
(
proc
=
GetProcAddress16
(
user
,
"DestroyIcon32"
)))
{
WORD
args
[
2
];
DWORD
result
;
args
[
1
]
=
handle
;
args
[
0
]
=
1
;
/* CID_RESOURCE */
WOWCallback16Ex
(
(
SEGPTR
)
proc
,
WCB16_PASCAL
,
sizeof
(
args
),
args
,
&
result
);
return
LOWORD
(
result
);
}
else
return
GlobalFree16
(
handle
);
}
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