Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
dac19db3
Commit
dac19db3
authored
Apr 18, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
Apr 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: SHGFI_EXETYPE flag should have the files returning 0 if they are DLL images.
parent
bf5b6c9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
shell32_main.c
dlls/shell32/shell32_main.c
+3
-0
No files found.
dlls/shell32/shell32_main.c
View file @
dac19db3
...
...
@@ -275,6 +275,9 @@ static DWORD shgfi_get_exe_type(LPCWSTR szFullPath)
SetFilePointer
(
hfile
,
mz_header
.
e_lfanew
,
NULL
,
SEEK_SET
);
ReadFile
(
hfile
,
&
nt
,
sizeof
(
nt
),
&
len
,
NULL
);
CloseHandle
(
hfile
);
/* DLL files are not executable and should return 0 */
if
(
nt
.
FileHeader
.
Characteristics
&
IMAGE_FILE_DLL
)
return
0
;
if
(
nt
.
OptionalHeader
.
Subsystem
==
IMAGE_SUBSYSTEM_WINDOWS_GUI
)
{
return
IMAGE_NT_SIGNATURE
|
...
...
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