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
837b4aa4
Commit
837b4aa4
authored
Nov 30, 2018
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Turn several constants and variables into static constants.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
63924319
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
devinst.c
dlls/setupapi/devinst.c
+3
-3
install.c
dlls/setupapi/install.c
+1
-1
No files found.
dlls/setupapi/devinst.c
View file @
837b4aa4
...
...
@@ -259,7 +259,7 @@ static void SETUPDI_GuidToString(const GUID *guid, LPWSTR guidStr)
static
WCHAR
*
get_iface_key_path
(
struct
device_iface
*
iface
)
{
const
WCHAR
slashW
[]
=
{
'\\'
,
0
};
static
const
WCHAR
slashW
[]
=
{
'\\'
,
0
};
WCHAR
*
path
,
*
ptr
;
size_t
len
=
strlenW
(
DeviceClasses
)
+
1
+
38
+
1
+
strlenW
(
iface
->
symlink
);
...
...
@@ -286,8 +286,8 @@ static WCHAR *get_iface_key_path(struct device_iface *iface)
static
WCHAR
*
get_refstr_key_path
(
struct
device_iface
*
iface
)
{
const
WCHAR
hashW
[]
=
{
'#'
,
0
};
const
WCHAR
slashW
[]
=
{
'\\'
,
0
};
static
const
WCHAR
hashW
[]
=
{
'#'
,
0
};
static
const
WCHAR
slashW
[]
=
{
'\\'
,
0
};
WCHAR
*
path
,
*
ptr
;
size_t
len
=
strlenW
(
DeviceClasses
)
+
1
+
38
+
1
+
strlenW
(
iface
->
symlink
)
+
1
+
1
;
...
...
dlls/setupapi/install.c
View file @
837b4aa4
...
...
@@ -1598,7 +1598,7 @@ BOOL WINAPI SetupGetInfFileListW(PCWSTR dir, DWORD style, PWSTR buffer,
}
else
{
WCHAR
infdir
[]
=
{
'\\'
,
'i'
,
'n'
,
'f'
,
0
};
static
const
WCHAR
infdir
[]
=
{
'\\'
,
'i'
,
'n'
,
'f'
,
0
};
DWORD
msize
;
dir_len
=
GetWindowsDirectoryW
(
NULL
,
0
);
msize
=
(
7
+
4
+
dir_len
)
*
sizeof
(
WCHAR
);
...
...
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