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
e4c0748c
Commit
e4c0748c
authored
Nov 28, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Make some data static and const.
parent
21bcfd72
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
23 deletions
+21
-23
cpanelfolder.c
dlls/shell32/cpanelfolder.c
+1
-1
recyclebin.c
dlls/shell32/recyclebin.c
+10
-10
shell.c
dlls/shell32/shell.c
+3
-3
shfldr_desktop.c
dlls/shell32/shfldr_desktop.c
+1
-3
shfldr_fs.c
dlls/shell32/shfldr_fs.c
+1
-1
shpolicy.c
dlls/shell32/shpolicy.c
+2
-2
xdg.c
dlls/shell32/xdg.c
+3
-3
No files found.
dlls/shell32/cpanelfolder.c
View file @
e4c0748c
...
...
@@ -109,7 +109,7 @@ static inline ICPanelImpl *impl_from_IShellExecuteHookA( IShellExecuteHookA *ifa
* IShellFolder [ControlPanel] implementation
*/
static
shvheader
ControlPanelSFHeader
[]
=
{
static
const
shvheader
ControlPanelSFHeader
[]
=
{
{
IDS_SHV_COLUMN8
,
SHCOLSTATE_TYPE_STR
|
SHCOLSTATE_ONBYDEFAULT
,
LVCFMT_RIGHT
,
15
},
/*FIXME*/
{
IDS_SHV_COLUMN9
,
SHCOLSTATE_TYPE_STR
|
SHCOLSTATE_ONBYDEFAULT
,
LVCFMT_RIGHT
,
200
},
/*FIXME*/
};
...
...
dlls/shell32/recyclebin.c
View file @
e4c0748c
...
...
@@ -73,7 +73,7 @@ static const columninfo RecycleBinColumns[] =
#define COLUMNS_COUNT 6
HRESULT
FormatDateTime
(
LPWSTR
buffer
,
int
size
,
FILETIME
ft
)
static
HRESULT
FormatDateTime
(
LPWSTR
buffer
,
int
size
,
FILETIME
ft
)
{
FILETIME
lft
;
SYSTEMTIME
time
;
...
...
@@ -99,22 +99,22 @@ HRESULT FormatDateTime(LPWSTR buffer, int size, FILETIME ft)
typedef
struct
tagRecycleBin
{
IShellFolder2Vtbl
*
lpVtbl
;
IPersistFolder2Vtbl
*
lpPersistFolderVtbl
;
const
IShellFolder2Vtbl
*
lpVtbl
;
const
IPersistFolder2Vtbl
*
lpPersistFolderVtbl
;
LONG
refCount
;
LPITEMIDLIST
pidl
;
}
RecycleBin
;
static
IShellFolder2Vtbl
recycleBinVtbl
;
static
IPersistFolder2Vtbl
recycleBinPersistVtbl
;
static
const
IShellFolder2Vtbl
recycleBinVtbl
;
static
const
IPersistFolder2Vtbl
recycleBinPersistVtbl
;
static
RecycleBin
*
impl_from_IPersistFolder
(
IPersistFolder2
*
iface
)
{
return
(
RecycleBin
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
RecycleBin
,
lpPersistFolderVtbl
));
return
(
RecycleBin
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
RecycleBin
,
lpPersistFolderVtbl
));
}
void
RecycleBin_Destructor
(
RecycleBin
*
This
);
static
void
RecycleBin_Destructor
(
RecycleBin
*
This
);
HRESULT
WINAPI
RecycleBin_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppOutput
)
{
...
...
@@ -138,7 +138,7 @@ HRESULT WINAPI RecycleBin_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *
return
S_OK
;
}
void
RecycleBin_Destructor
(
RecycleBin
*
This
)
static
void
RecycleBin_Destructor
(
RecycleBin
*
This
)
{
/* InterlockedDecrement(&objCount);*/
SHFree
(
This
->
pidl
);
...
...
@@ -454,7 +454,7 @@ static HRESULT WINAPI RecycleBin_MapColumnToSCID(IShellFolder2 *iface, UINT iCol
return
S_OK
;
}
static
IShellFolder2Vtbl
recycleBinVtbl
=
static
const
IShellFolder2Vtbl
recycleBinVtbl
=
{
/* IUnknown */
RecycleBin_QueryInterface
,
...
...
@@ -498,7 +498,7 @@ static ULONG WINAPI RecycleBin_IPersistFolder2_Release(IPersistFolder2 *This)
return
RecycleBin_Release
((
IShellFolder2
*
)
impl_from_IPersistFolder
(
This
));
}
static
IPersistFolder2Vtbl
recycleBinPersistVtbl
=
static
const
IPersistFolder2Vtbl
recycleBinPersistVtbl
=
{
/* IUnknown */
RecycleBin_IPersistFolder2_QueryInterface
,
...
...
dlls/shell32/shell.c
View file @
e4c0748c
...
...
@@ -60,9 +60,9 @@ typedef struct { /* structure for dropped files */
/* memory block with filenames follows */
}
DROPFILESTRUCT16
,
*
LPDROPFILESTRUCT16
;
static
const
char
*
lpstrMsgWndCreated
=
"OTHERWINDOWCREATED"
;
static
const
char
*
lpstrMsgWndDestroyed
=
"OTHERWINDOWDESTROYED"
;
static
const
char
*
lpstrMsgShellActivate
=
"ACTIVATESHELLWINDOW"
;
static
const
char
lpstrMsgWndCreated
[]
=
"OTHERWINDOWCREATED"
;
static
const
char
lpstrMsgWndDestroyed
[]
=
"OTHERWINDOWDESTROYED"
;
static
const
char
lpstrMsgShellActivate
[]
=
"ACTIVATESHELLWINDOW"
;
static
HWND
SHELL_hWnd
=
0
;
static
HHOOK
SHELL_hHook
=
0
;
...
...
dlls/shell32/shfldr_desktop.c
View file @
e4c0748c
...
...
@@ -63,8 +63,6 @@ typedef struct {
const
IShellFolder2Vtbl
*
lpVtbl
;
LONG
ref
;
CLSID
*
pclsid
;
/* both paths are parsible from the desktop */
LPWSTR
sPathTarget
;
/* complete path to target used for enumeration and ChangeNotify */
LPITEMIDLIST
pidlRoot
;
/* absolute pidl */
...
...
@@ -76,7 +74,7 @@ typedef struct {
#define _IUnknown_(This) (IShellFolder*)&(This->lpVtbl)
#define _IShellFolder_(This) (IShellFolder*)&(This->lpVtbl)
static
shvheader
DesktopSFHeader
[]
=
{
static
const
shvheader
DesktopSFHeader
[]
=
{
{
IDS_SHV_COLUMN1
,
SHCOLSTATE_TYPE_STR
|
SHCOLSTATE_ONBYDEFAULT
,
LVCFMT_RIGHT
,
15
},
{
IDS_SHV_COLUMN2
,
SHCOLSTATE_TYPE_STR
|
SHCOLSTATE_ONBYDEFAULT
,
LVCFMT_RIGHT
,
10
},
{
IDS_SHV_COLUMN3
,
SHCOLSTATE_TYPE_STR
|
SHCOLSTATE_ONBYDEFAULT
,
LVCFMT_RIGHT
,
10
},
...
...
dlls/shell32/shfldr_fs.c
View file @
e4c0748c
...
...
@@ -208,7 +208,7 @@ static const IUnknownVtbl unkvt =
IUnknown_fnRelease
,
};
static
shvheader
GenericSFHeader
[]
=
{
static
const
shvheader
GenericSFHeader
[]
=
{
{
IDS_SHV_COLUMN1
,
SHCOLSTATE_TYPE_STR
|
SHCOLSTATE_ONBYDEFAULT
,
LVCFMT_RIGHT
,
15
},
{
IDS_SHV_COLUMN2
,
SHCOLSTATE_TYPE_STR
|
SHCOLSTATE_ONBYDEFAULT
,
LVCFMT_RIGHT
,
10
},
{
IDS_SHV_COLUMN3
,
SHCOLSTATE_TYPE_STR
|
SHCOLSTATE_ONBYDEFAULT
,
LVCFMT_RIGHT
,
10
},
...
...
dlls/shell32/shpolicy.c
View file @
e4c0748c
...
...
@@ -133,7 +133,7 @@ static const char strNoClose[] = {"NoClose"};
static
const
char
strNoRun
[]
=
{
"NoRun"
};
/* policy data array */
POLICYDATA
sh32_policy_table
[]
=
static
POLICYDATA
sh32_policy_table
[]
=
{
{
REST_NORUN
,
...
...
@@ -796,7 +796,7 @@ POLICYDATA sh32_policy_table[] =
0
,
0
,
SHELL_NO_POLICY
}
}
};
/*************************************************************************
...
...
dlls/shell32/xdg.c
View file @
e4c0748c
...
...
@@ -364,8 +364,8 @@ static int dskentry_decode(const char *value, int len, char *output)
*/
static
int
url_encode
(
const
char
*
value
,
char
*
output
)
{
static
const
char
*
unsafechars
=
"^&`{}|[]'<>
\\
#%
\"
+"
;
static
const
char
*
hexchars
=
"0123456789ABCDEF"
;
static
const
char
unsafechars
[]
=
"^&`{}|[]'<>
\\
#%
\"
+"
;
static
const
char
hexchars
[]
=
"0123456789ABCDEF"
;
int
num_written
=
0
;
const
char
*
c
;
...
...
@@ -400,7 +400,7 @@ static int decode_url_code(const char *c)
{
const
char
*
p1
,
*
p2
;
int
v1
,
v2
;
static
const
char
*
hexchars
=
"0123456789ABCDEF"
;
static
const
char
hexchars
[]
=
"0123456789ABCDEF"
;
if
(
*
c
==
0
)
return
-
1
;
...
...
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