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
4098dc64
Commit
4098dc64
authored
Mar 17, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 17, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some dead code and some ifdefs.
parent
e82731a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
24 deletions
+12
-24
shlfolder.c
dlls/shell32/shlfolder.c
+12
-24
No files found.
dlls/shell32/shlfolder.c
View file @
4098dc64
/*
* Shell Folder stuff
*
...
...
@@ -51,19 +50,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
shell
);
/***************************************************************************
* debughelper: print out the return address
* helps especially to track down unbalanced AddRef/Release
*/
#define MEM_DEBUG 0
#if MEM_DEBUG
#define _CALL_TRACE TRACE("called from: 0x%08x\n", *( ((UINT*)&iface)-1 ));
#else
#define _CALL_TRACE
#endif
static
const
WCHAR
wszDotShellClassInfo
[]
=
{
'.'
,
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
'C'
,
'l'
,
'a'
,
's'
,
's'
,
'I'
,
'n'
,
'f'
,
'o'
,
0
};
static
const
WCHAR
wszDotShellClassInfo
[]
=
{
'.'
,
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
'C'
,
'l'
,
'a'
,
's'
,
's'
,
'I'
,
'n'
,
'f'
,
'o'
,
0
};
/***************************************************************************
* SHELL32_GetCustomFolderAttribute (internal function)
...
...
@@ -86,26 +74,26 @@ BOOL SHELL32_GetCustomFolderAttribute(
LPCITEMIDLIST
pidl
,
LPCWSTR
pwszHeading
,
LPCWSTR
pwszAttribute
,
LPWSTR
pwszValue
,
DWORD
cchValue
)
{
#if 0 /* Hack around not having system attribute on non-Windows file systems */
DWORD dwAttrib = _ILGetFileAttributes(pidl, NULL, 0)
;
#else
static
const
WCHAR
wszDesktopIni
[]
=
{
'd'
,
'e'
,
's'
,
'k'
,
't'
,
'o'
,
'p'
,
'.'
,
'i'
,
'n'
,
'i'
,
0
}
;
static
const
WCHAR
wszDefault
[]
=
{
0
};
DWORD
dwAttrib
=
FILE_ATTRIBUTE_SYSTEM
;
#endif
/* Hack around not having system attribute on non-Windows file systems */
if
(
0
)
dwAttrib
=
_ILGetFileAttributes
(
pidl
,
NULL
,
0
);
if
(
dwAttrib
&
FILE_ATTRIBUTE_SYSTEM
)
{
DWORD
ret
;
WCHAR
wszDesktopIniPath
[
MAX_PATH
];
static
const
WCHAR
wszDesktopIni
[]
=
{
'd'
,
'e'
,
's'
,
'k'
,
't'
,
'o'
,
'p'
,
'.'
,
'i'
,
'n'
,
'i'
,
0
};
static
const
WCHAR
wszDefault
[]
=
{
0
};
if
(
!
SHGetPathFromIDListW
(
pidl
,
wszDesktopIniPath
))
return
FALSE
;
PathAppendW
(
wszDesktopIniPath
,
wszDesktopIni
);
ret
=
GetPrivateProfileStringW
(
pwszHeading
,
pwszAttribute
,
wszDefault
,
pwszValue
,
cchValue
,
wszDesktopIniPath
);
if
(
!
ret
)
return
FALSE
;
return
TRUE
;
return
ret
;
}
return
FALSE
;
}
...
...
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