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
8eeed94f
Commit
8eeed94f
authored
Dec 17, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export DestroyIcon32 from user32 and use GetProcAddress to call it
from FreeResource16.
parent
7e49205d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
user32.spec
dlls/user/user32.spec
+1
-0
cursoricon.h
include/cursoricon.h
+1
-4
resource.c
loader/resource.c
+8
-3
cursoricon.c
windows/cursoricon.c
+5
-5
No files found.
dlls/user/user32.spec
View file @
8eeed94f
...
...
@@ -672,6 +672,7 @@ debug_channels (accel caret class clipboard combo cursor dc dde ddeml dialog dri
@ stdcall CallWindowProc16(long long long long long) CallWindowProc16
@ stdcall CloseDriver16(long long long) CloseDriver16
@ stdcall CreateDialogIndirectParam16(long ptr long long long) CreateDialogIndirectParam16
@ stdcall DestroyIcon32(long long) DestroyIcon32
@ stdcall DefDriverProc16(long long long long long) DefDriverProc16
@ stdcall DialogBoxIndirectParam16(long long long long long) DialogBoxIndirectParam16
@ stdcall GetDriverModuleHandle16(long) GetDriverModuleHandle16
...
...
include/cursoricon.h
View file @
8eeed94f
...
...
@@ -80,9 +80,6 @@ extern HGLOBAL CURSORICON_Load( HINSTANCE hInstance, LPCWSTR name,
extern
HGLOBAL
CURSORICON_ExtCopy
(
HGLOBAL
handle
,
UINT
type
,
INT
desiredx
,
INT
desiredy
,
UINT
flags
);
extern
WORD
WINAPI
CURSORICON_Destroy
(
HGLOBAL16
handle
,
UINT16
flags
);
extern
void
CURSORICON_FreeModuleIcons
(
HMODULE
hModule
);
#endif
/* __WINE_CURSORICON_H */
loader/resource.c
View file @
8eeed94f
...
...
@@ -17,7 +17,6 @@
#include "wine/winbase16.h"
#include "wine/exception.h"
#include "heap.h"
#include "callback.h"
#include "cursoricon.h"
#include "module.h"
#include "file.h"
...
...
@@ -409,6 +408,9 @@ LPVOID WINAPI LockResource( HGLOBAL handle )
return
LockResource16
(
handle
);
}
typedef
WORD
WINAPI
(
*
pDestroyIcon32Proc
)(
HGLOBAL16
handle
,
UINT16
flags
);
/**********************************************************************
* FreeResource (KERNEL.63)
* FreeResource16 (KERNEL32.@)
...
...
@@ -428,8 +430,11 @@ BOOL16 WINAPI FreeResource16( HGLOBAL16 handle )
GlobalFree16() */
if
(
retv
)
{
if
(
Callout
.
DestroyIcon32
)
retv
=
Callout
.
DestroyIcon32
(
handle
,
CID_RESOURCE
);
pDestroyIcon32Proc
proc
;
HMODULE
user
=
GetModuleHandleA
(
"user32.dll"
);
if
(
user
&&
(
proc
=
(
pDestroyIcon32Proc
)
GetProcAddress
(
user
,
"DestroyIcon32"
)))
retv
=
proc
(
handle
,
CID_RESOURCE
);
else
retv
=
GlobalFree16
(
handle
);
}
...
...
windows/cursoricon.c
View file @
8eeed94f
...
...
@@ -1293,7 +1293,7 @@ HCURSOR16 WINAPI CopyCursor16( HINSTANCE16 hInstance, HCURSOR16 hCursor )
* the Win95 one exactly, especially the return values, which
* depend on the setting of various flags.
*/
WORD
WINAPI
CURSORICON_Destroy
(
HGLOBAL16
handle
,
UINT16
flags
)
WORD
WINAPI
DestroyIcon32
(
HGLOBAL16
handle
,
UINT16
flags
)
{
WORD
retv
;
...
...
@@ -1330,7 +1330,7 @@ WORD WINAPI CURSORICON_Destroy( HGLOBAL16 handle, UINT16 flags )
*/
BOOL16
WINAPI
DestroyIcon16
(
HICON16
hIcon
)
{
return
CURSORICON_Destroy
(
hIcon
,
0
);
return
DestroyIcon32
(
hIcon
,
0
);
}
/***********************************************************************
...
...
@@ -1338,7 +1338,7 @@ BOOL16 WINAPI DestroyIcon16( HICON16 hIcon )
*/
BOOL
WINAPI
DestroyIcon
(
HICON
hIcon
)
{
return
CURSORICON_Destroy
(
hIcon
,
CID_WIN32
);
return
DestroyIcon32
(
hIcon
,
CID_WIN32
);
}
/***********************************************************************
...
...
@@ -1346,7 +1346,7 @@ BOOL WINAPI DestroyIcon( HICON hIcon )
*/
BOOL16
WINAPI
DestroyCursor16
(
HCURSOR16
hCursor
)
{
return
CURSORICON_Destroy
(
hCursor
,
0
);
return
DestroyIcon32
(
hCursor
,
0
);
}
/***********************************************************************
...
...
@@ -1354,7 +1354,7 @@ BOOL16 WINAPI DestroyCursor16( HCURSOR16 hCursor )
*/
BOOL
WINAPI
DestroyCursor
(
HCURSOR
hCursor
)
{
return
CURSORICON_Destroy
(
hCursor
,
CID_WIN32
);
return
DestroyIcon32
(
hCursor
,
CID_WIN32
);
}
...
...
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