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
03b93eee
Commit
03b93eee
authored
Apr 29, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
May 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use proper types in ICO_GetIconDirectory.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5aaa8e25
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
25 deletions
+21
-25
cursoricon.c
dlls/user32/cursoricon.c
+0
-23
exticon.c
dlls/user32/exticon.c
+2
-2
user_private.h
dlls/user32/user_private.h
+19
-0
No files found.
dlls/user32/cursoricon.c
View file @
03b93eee
...
...
@@ -48,29 +48,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(cursor);
WINE_DECLARE_DEBUG_CHANNEL
(
icon
);
WINE_DECLARE_DEBUG_CHANNEL
(
resource
);
#include "pshpack1.h"
typedef
struct
{
BYTE
bWidth
;
BYTE
bHeight
;
BYTE
bColorCount
;
BYTE
bReserved
;
WORD
xHotspot
;
WORD
yHotspot
;
DWORD
dwDIBSize
;
DWORD
dwDIBOffset
;
}
CURSORICONFILEDIRENTRY
;
typedef
struct
{
WORD
idReserved
;
WORD
idType
;
WORD
idCount
;
CURSORICONFILEDIRENTRY
idEntries
[
1
];
}
CURSORICONFILEDIR
;
#include "poppack.h"
static
HDC
screen_dc
;
static
const
WCHAR
DISPLAYW
[]
=
{
'D'
,
'I'
,
'S'
,
'P'
,
'L'
,
'A'
,
'Y'
,
0
};
...
...
dlls/user32/exticon.c
View file @
03b93eee
...
...
@@ -218,13 +218,13 @@ static BYTE * ICO_LoadIcon( LPBYTE peimage, LPicoICONDIRENTRY lpiIDE, ULONG *uSi
*/
static
BYTE
*
ICO_GetIconDirectory
(
LPBYTE
peimage
,
LPicoICONDIR
*
lplpiID
,
ULONG
*
uSize
)
{
CURSORICON
DIR
*
lpcid
;
/* icon resource in resource-dir format */
CURSORICON
FILEDIR
*
lpcid
;
/* icon resource in resource-dir format */
CURSORICONDIR
*
lpID
;
/* icon resource in resource format */
int
i
;
TRACE
(
"%p %p
\n
"
,
peimage
,
lplpiID
);
lpcid
=
(
CURSORICONDIR
*
)
peimage
;
lpcid
=
(
CURSORICON
FILE
DIR
*
)
peimage
;
if
(
lpcid
->
idReserved
||
(
lpcid
->
idType
!=
1
)
||
(
!
lpcid
->
idCount
)
)
return
0
;
...
...
dlls/user32/user_private.h
View file @
03b93eee
...
...
@@ -318,6 +318,25 @@ typedef struct
CURSORICONDIRENTRY
idEntries
[
1
];
}
CURSORICONDIR
;
typedef
struct
{
BYTE
bWidth
;
BYTE
bHeight
;
BYTE
bColorCount
;
BYTE
bReserved
;
WORD
xHotspot
;
WORD
yHotspot
;
DWORD
dwDIBSize
;
DWORD
dwDIBOffset
;
}
CURSORICONFILEDIRENTRY
;
typedef
struct
{
WORD
idReserved
;
WORD
idType
;
WORD
idCount
;
CURSORICONFILEDIRENTRY
idEntries
[
1
];
}
CURSORICONFILEDIR
;
#include "poppack.h"
extern
BOOL
get_icon_size
(
HICON
handle
,
SIZE
*
size
)
DECLSPEC_HIDDEN
;
...
...
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