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
1ee9c2c6
Commit
1ee9c2c6
authored
Jan 04, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Make some strings static constants.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f25501db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
control.c
dlls/shell32/control.c
+5
-5
shfldr_fs.c
dlls/shell32/shfldr_fs.c
+1
-1
shlfileop.c
dlls/shell32/shlfileop.c
+1
-1
No files found.
dlls/shell32/control.c
View file @
1ee9c2c6
...
...
@@ -194,8 +194,8 @@ CPlApplet* Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel* panel)
static
BOOL
Control_CreateListView
(
CPanel
*
panel
)
{
static
const
WCHAR
empty_string
[]
=
{
0
};
RECT
ws
,
sb
;
WCHAR
empty_string
[]
=
{
0
};
WCHAR
buf
[
MAX_STRING_LEN
];
LVCOLUMNW
lvc
;
...
...
@@ -431,8 +431,8 @@ static CPlItem* Control_GetCPlItem_From_ListView(CPanel *panel)
static
void
Control_StartApplet
(
HWND
hWnd
,
CPlItem
*
item
)
{
WCHAR
verbOpen
[]
=
{
'c'
,
'p'
,
'l'
,
'o'
,
'p'
,
'e'
,
'n'
,
0
};
WCHAR
format
[]
=
{
'@'
,
'%'
,
'd'
,
0
};
static
const
WCHAR
verbOpen
[]
=
{
'c'
,
'p'
,
'l'
,
'o'
,
'p'
,
'e'
,
'n'
,
0
};
static
const
WCHAR
format
[]
=
{
'@'
,
'%'
,
'd'
,
0
};
WCHAR
param
[
MAX_PATH
];
/* execute the applet if item is valid */
...
...
@@ -610,11 +610,11 @@ static LRESULT WINAPI Control_WndProc(HWND hWnd, UINT wMsg,
static
void
Control_DoInterface
(
CPanel
*
panel
,
HWND
hWnd
,
HINSTANCE
hInst
)
{
static
const
WCHAR
className
[]
=
{
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
'_'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'_'
,
'W'
,
'n'
,
'd'
,
'C'
,
'l'
,
'a'
,
's'
,
's'
,
0
};
WNDCLASSEXW
wc
;
MSG
msg
;
WCHAR
appName
[
MAX_STRING_LEN
];
const
WCHAR
className
[]
=
{
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
'_'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'_'
,
'W'
,
'n'
,
'd'
,
'C'
,
'l'
,
'a'
,
's'
,
's'
,
0
};
LoadStringW
(
shell32_hInstance
,
IDS_CPANEL_TITLE
,
appName
,
sizeof
(
appName
)
/
sizeof
(
appName
[
0
]));
...
...
dlls/shell32/shfldr_fs.c
View file @
1ee9c2c6
...
...
@@ -1085,7 +1085,7 @@ ISFHelper_fnGetUniqueName (ISFHelper * iface, LPWSTR pwszName, UINT uLen)
HRESULT
hr
;
WCHAR
wszText
[
MAX_PATH
];
WCHAR
wszNewFolder
[
25
];
const
WCHAR
wszFormat
[]
=
{
'%'
,
's'
,
' '
,
'%'
,
'd'
,
0
};
static
const
WCHAR
wszFormat
[]
=
{
'%'
,
's'
,
' '
,
'%'
,
'd'
,
0
};
TRACE
(
"(%p)(%p %u)
\n
"
,
This
,
pwszName
,
uLen
);
...
...
dlls/shell32/shlfileop.c
View file @
1ee9c2c6
...
...
@@ -1309,8 +1309,8 @@ static BOOL confirm_delete_list(HWND hWnd, DWORD fFlags, BOOL fTrash, const FILE
{
if
(
flFrom
->
dwNumFiles
>
1
)
{
static
const
WCHAR
format
[]
=
{
'%'
,
'd'
,
0
};
WCHAR
tmp
[
8
];
const
WCHAR
format
[]
=
{
'%'
,
'd'
,
0
};
wnsprintfW
(
tmp
,
sizeof
(
tmp
)
/
sizeof
(
tmp
[
0
]),
format
,
flFrom
->
dwNumFiles
);
return
SHELL_ConfirmDialogW
(
hWnd
,
(
fTrash
?
ASK_TRASH_MULTIPLE_ITEM
:
ASK_DELETE_MULTIPLE_ITEM
),
tmp
,
NULL
);
...
...
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