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
4493a74c
Commit
4493a74c
authored
Nov 30, 1998
by
Juergen Schmied
Committed by
Alexandre Julliard
Nov 30, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Load now the first icon from the *.ani file instead of crashing.
parent
773c7b75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
cursoricon.c
objects/cursoricon.c
+23
-0
No files found.
objects/cursoricon.c
View file @
4493a74c
...
...
@@ -227,6 +227,29 @@ BOOL32 CURSORICON_SimulateLoadingFromResourceW( LPWSTR filename, BOOL32 fCursor,
*
res
=
NULL
;
*
ptr
=
NULL
;
if
(
!
(
bits
=
(
CURSORICONFILEDIR
*
)
VIRTUAL_MapFileW
(
filename
)))
return
FALSE
;
/* FIXME: test for inimated icons
* hack to load the first icon from the *.ani file
*/
if
(
*
(
LPDWORD
)
bits
==
0x46464952
)
/* "RIFF" */
{
LPBYTE
pos
=
(
LPBYTE
)
bits
;
FIXME
(
cursor
,
"Animated icons not correctly implemented! %p
\n
"
,
bits
);
for
(;;)
{
if
(
*
(
LPDWORD
)
pos
==
0x6e6f6369
)
/* "icon" */
{
FIXME
(
cursor
,
"icon entry found! %p
\n
"
,
bits
);
pos
+=
4
;
if
(
!*
(
LPWORD
)
pos
==
0x2fe
)
/* iconsize */
{
goto
fail
;
}
bits
+=
2
;
FIXME
(
cursor
,
"icon size ok %p
\n
"
,
bits
);
break
;
}
pos
+=
2
;
if
(
pos
>=
(
LPBYTE
)
bits
+
766
)
goto
fail
;
}
}
if
(
!
(
entries
=
bits
->
idCount
))
goto
fail
;
(
int
)
_free
=
size
=
sizeof
(
CURSORICONDIR
)
+
sizeof
(
CURSORICONDIRENTRY
)
*
(
entries
-
1
);
...
...
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