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
a9e93b35
Commit
a9e93b35
authored
Apr 11, 1999
by
Juergen Schmied
Committed by
Alexandre Julliard
Apr 11, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed buffer overrun.
parent
c45bbee6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
shell.c
misc/shell.c
+5
-5
No files found.
misc/shell.c
View file @
a9e93b35
...
@@ -582,13 +582,13 @@ static HGLOBAL16 ICO_GetIconDirectory(HINSTANCE16 hInst, HFILE hFile, LPicoICOND
...
@@ -582,13 +582,13 @@ static HGLOBAL16 ICO_GetIconDirectory(HINSTANCE16 hInst, HFILE hFile, LPicoICOND
if
(
id
[
0
]
||
id
[
1
]
!=
1
||
!
id
[
2
]
)
return
0
;
if
(
id
[
0
]
||
id
[
1
]
!=
1
||
!
id
[
2
]
)
return
0
;
i
=
id
[
2
]
*
sizeof
(
icoICONDIRENTRY
)
+
sizeof
(
id
)
;
i
=
id
[
2
]
*
sizeof
(
icoICONDIRENTRY
)
;
lpiID
=
(
LPicoICONDIR
)
HeapAlloc
(
GetProcessHeap
(),
0
,
i
);
lpiID
=
(
LPicoICONDIR
)
HeapAlloc
(
GetProcessHeap
(),
0
,
i
+
sizeof
(
id
)
);
if
(
_lread
(
hFile
,(
char
*
)
lpiID
->
idEntries
,
i
)
==
i
)
if
(
_lread
(
hFile
,(
char
*
)
lpiID
->
idEntries
,
i
)
==
i
)
{
HGLOBAL16
handle
=
DirectResAlloc16
(
hInst
,
0x10
,
{
HGLOBAL16
handle
=
DirectResAlloc16
(
hInst
,
0x10
,
id
[
2
]
*
sizeof
(
ICONDIRENTRY
)
+
sizeof
(
id
)
);
id
[
2
]
*
sizeof
(
CURSOR
ICONDIRENTRY
)
+
sizeof
(
id
)
);
if
(
handle
)
if
(
handle
)
{
CURSORICONDIR
*
lpID
=
(
CURSORICONDIR
*
)
GlobalLock16
(
handle
);
{
CURSORICONDIR
*
lpID
=
(
CURSORICONDIR
*
)
GlobalLock16
(
handle
);
lpID
->
idReserved
=
lpiID
->
idReserved
=
id
[
0
];
lpID
->
idReserved
=
lpiID
->
idReserved
=
id
[
0
];
...
@@ -596,8 +596,8 @@ static HGLOBAL16 ICO_GetIconDirectory(HINSTANCE16 hInst, HFILE hFile, LPicoICOND
...
@@ -596,8 +596,8 @@ static HGLOBAL16 ICO_GetIconDirectory(HINSTANCE16 hInst, HFILE hFile, LPicoICOND
lpID
->
idCount
=
lpiID
->
idCount
=
id
[
2
];
lpID
->
idCount
=
lpiID
->
idCount
=
id
[
2
];
for
(
i
=
0
;
i
<
lpiID
->
idCount
;
i
++
)
for
(
i
=
0
;
i
<
lpiID
->
idCount
;
i
++
)
{
memcpy
((
void
*
)(
lpID
->
idEntries
+
i
),
{
memcpy
((
void
*
)(
lpID
->
idEntries
+
i
),
(
void
*
)(
lpiID
->
idEntries
+
i
),
sizeof
(
ICONDIRENTRY
)
-
2
);
(
void
*
)(
lpiID
->
idEntries
+
i
),
sizeof
(
CURSOR
ICONDIRENTRY
)
-
2
);
lpID
->
idEntries
[
i
].
icon
.
wResId
=
i
;
lpID
->
idEntries
[
i
].
wResId
=
i
;
}
}
*
lplpiID
=
lpiID
;
*
lplpiID
=
lpiID
;
return
handle
;
return
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