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
a76f667d
Commit
a76f667d
authored
Mar 19, 1999
by
Francis Beaudet
Committed by
Alexandre Julliard
Mar 19, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a check for desktop in SHGetFileInfo.
parent
b2ad2439
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
17 deletions
+29
-17
shell32_main.c
dlls/shell32/shell32_main.c
+29
-17
No files found.
dlls/shell32/shell32_main.c
View file @
a76f667d
...
...
@@ -116,24 +116,36 @@ DWORD WINAPI SHGetFileInfoA(LPCSTR path,DWORD dwFileAttributes,
if
(
flags
&
SHGFI_ATTRIBUTES
)
{
if
(
flags
&
SHGFI_PIDL
)
{
pData
=
_ILGetDataPointer
((
LPCITEMIDLIST
)
path
);
switch
(
pData
->
type
)
{
case
PT_DESKTOP
:
psfi
->
dwAttributes
=
SFGAO_HASSUBFOLDER
|
SFGAO_FOLDER
|
SFGAO_DROPTARGET
|
SFGAO_HASPROPSHEET
|
SFGAO_CANLINK
;
case
PT_MYCOMP
:
psfi
->
dwAttributes
=
SFGAO_HASSUBFOLDER
|
SFGAO_FOLDER
|
SFGAO_FILESYSANCESTOR
|
SFGAO_DROPTARGET
|
SFGAO_HASPROPSHEET
|
SFGAO_CANRENAME
|
SFGAO_CANLINK
;
case
PT_SPECIAL
:
psfi
->
dwAttributes
=
SFGAO_HASSUBFOLDER
|
SFGAO_FOLDER
|
SFGAO_CAPABILITYMASK
;
case
PT_DRIVE
:
psfi
->
dwAttributes
=
SFGAO_HASSUBFOLDER
|
SFGAO_FILESYSTEM
|
SFGAO_FOLDER
|
SFGAO_FILESYSANCESTOR
|
SFGAO_DROPTARGET
|
SFGAO_HASPROPSHEET
|
SFGAO_CANLINK
;
case
PT_FOLDER
:
psfi
->
dwAttributes
=
SFGAO_HASSUBFOLDER
|
SFGAO_FILESYSTEM
|
SFGAO_FOLDER
|
SFGAO_CAPABILITYMASK
;
case
PT_VALUE
:
psfi
->
dwAttributes
=
SFGAO_FILESYSTEM
|
SFGAO_CAPABILITYMASK
;
{
/*
* We have to test for the desktop folder first because ILGetDataPointer returns
* NULL on the desktop folder.
*/
if
(
_ILIsDesktop
((
LPCITEMIDLIST
)
path
))
{
psfi
->
dwAttributes
=
SFGAO_HASSUBFOLDER
|
SFGAO_FOLDER
|
SFGAO_DROPTARGET
|
SFGAO_HASPROPSHEET
|
SFGAO_CANLINK
;
ret
=
TRUE
;
}
else
{
pData
=
_ILGetDataPointer
((
LPCITEMIDLIST
)
path
);
switch
(
pData
->
type
)
{
case
PT_DESKTOP
:
psfi
->
dwAttributes
=
SFGAO_HASSUBFOLDER
|
SFGAO_FOLDER
|
SFGAO_DROPTARGET
|
SFGAO_HASPROPSHEET
|
SFGAO_CANLINK
;
case
PT_MYCOMP
:
psfi
->
dwAttributes
=
SFGAO_HASSUBFOLDER
|
SFGAO_FOLDER
|
SFGAO_FILESYSANCESTOR
|
SFGAO_DROPTARGET
|
SFGAO_HASPROPSHEET
|
SFGAO_CANRENAME
|
SFGAO_CANLINK
;
case
PT_SPECIAL
:
psfi
->
dwAttributes
=
SFGAO_HASSUBFOLDER
|
SFGAO_FOLDER
|
SFGAO_CAPABILITYMASK
;
case
PT_DRIVE
:
psfi
->
dwAttributes
=
SFGAO_HASSUBFOLDER
|
SFGAO_FILESYSTEM
|
SFGAO_FOLDER
|
SFGAO_FILESYSANCESTOR
|
SFGAO_DROPTARGET
|
SFGAO_HASPROPSHEET
|
SFGAO_CANLINK
;
case
PT_FOLDER
:
psfi
->
dwAttributes
=
SFGAO_HASSUBFOLDER
|
SFGAO_FILESYSTEM
|
SFGAO_FOLDER
|
SFGAO_CAPABILITYMASK
;
case
PT_VALUE
:
psfi
->
dwAttributes
=
SFGAO_FILESYSTEM
|
SFGAO_CAPABILITYMASK
;
}
ret
=
TRUE
;
}
ret
=
TRUE
;
}
else
{
if
(
!
(
flags
&
SHGFI_USEFILEATTRIBUTES
))
...
...
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