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
5d6f328e
Commit
5d6f328e
authored
May 13, 2003
by
Robert Shearman
Committed by
Alexandre Julliard
May 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PrivateExtractIcon* should search the path for the icon file.
parent
d8d12a0b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
exticon.c
dlls/user/exticon.c
+10
-1
No files found.
dlls/user/exticon.c
View file @
5d6f328e
...
@@ -266,10 +266,19 @@ static UINT ICO_ExtractIconExW(
...
@@ -266,10 +266,19 @@ static UINT ICO_ExtractIconExW(
HANDLE
fmapping
;
HANDLE
fmapping
;
ULONG
uSize
;
ULONG
uSize
;
DWORD
fsizeh
,
fsizel
;
DWORD
fsizeh
,
fsizel
;
WCHAR
szExePath
[
MAX_PATH
];
DWORD
dwSearchReturn
;
TRACE
(
"%s, %d, %d %p 0x%08x
\n
"
,
debugstr_w
(
lpszExeFileName
),
nIconIndex
,
nIcons
,
pIconId
,
flags
);
TRACE
(
"%s, %d, %d %p 0x%08x
\n
"
,
debugstr_w
(
lpszExeFileName
),
nIconIndex
,
nIcons
,
pIconId
,
flags
);
hFile
=
CreateFileW
(
lpszExeFileName
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
dwSearchReturn
=
SearchPathW
(
NULL
,
lpszExeFileName
,
NULL
,
sizeof
(
szExePath
)
/
sizeof
(
szExePath
[
0
]),
szExePath
,
NULL
);
if
((
dwSearchReturn
==
0
)
||
(
dwSearchReturn
>
sizeof
(
szExePath
)
/
sizeof
(
szExePath
[
0
])))
{
WARN
(
"File %s not found or path too long
\n
"
,
debugstr_w
(
lpszExeFileName
));
return
-
1
;
}
hFile
=
CreateFileW
(
szExePath
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
if
(
hFile
==
INVALID_HANDLE_VALUE
)
return
ret
;
if
(
hFile
==
INVALID_HANDLE_VALUE
)
return
ret
;
fsizel
=
GetFileSize
(
hFile
,
&
fsizeh
);
fsizel
=
GetFileSize
(
hFile
,
&
fsizeh
);
...
...
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