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
0f5b224b
Commit
0f5b224b
authored
Jul 24, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dbf2426b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wineboot.c
programs/wineboot/wineboot.c
+4
-4
No files found.
programs/wineboot/wineboot.c
View file @
0f5b224b
...
...
@@ -401,7 +401,7 @@ static void create_volatile_environment_registry_key(void)
set_reg_value
(
hkey
,
HomeDriveW
,
path
);
}
size
=
sizeof
(
path
)
/
sizeof
(
path
[
0
]
);
size
=
ARRAY_SIZE
(
path
);
if
(
GetUserNameW
(
path
,
&
size
))
set_reg_value
(
hkey
,
UserNameW
,
path
);
set_reg_value
(
hkey
,
HomeShareW
,
EmptyW
);
...
...
@@ -410,7 +410,7 @@ static void create_volatile_environment_registry_key(void)
if
(
SUCCEEDED
(
hr
))
set_reg_value
(
hkey
,
LocalAppDataW
,
path
);
size
=
(
sizeof
(
computername
)
/
sizeof
(
WCHAR
)
)
-
2
;
size
=
ARRAY_SIZE
(
computername
)
-
2
;
if
(
GetComputerNameW
(
&
computername
[
2
],
&
size
))
{
set_reg_value
(
hkey
,
UserDomainW
,
&
computername
[
2
]
);
...
...
@@ -433,7 +433,7 @@ static BOOL wininit(void)
static
const
WCHAR
wininitbakW
[]
=
{
'w'
,
'i'
,
'n'
,
'i'
,
'n'
,
'i'
,
't'
,
'.'
,
'b'
,
'a'
,
'k'
,
0
};
WCHAR
initial_buffer
[
1024
];
WCHAR
*
str
,
*
buffer
=
initial_buffer
;
DWORD
size
=
sizeof
(
initial_buffer
)
/
sizeof
(
WCHAR
);
DWORD
size
=
ARRAY_SIZE
(
initial_buffer
);
DWORD
res
;
for
(;;)
...
...
@@ -948,7 +948,7 @@ static HANDLE start_rundll32( const char *inf_path, BOOL wow64 )
static
const
WCHAR
wowinstall
[]
=
{
' '
,
'W'
,
'o'
,
'w'
,
'6'
,
'4'
,
'I'
,
'n'
,
's'
,
't'
,
'a'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
inf
[]
=
{
' '
,
'1'
,
'2'
,
'8'
,
' '
,
'\\'
,
'\\'
,
'?'
,
'\\'
,
'u'
,
'n'
,
'i'
,
'x'
,
0
};
WCHAR
app
[
MAX_PATH
+
sizeof
(
rundll
)
/
sizeof
(
WCHAR
)];
WCHAR
app
[
MAX_PATH
+
ARRAY_SIZE
(
rundll
)];
STARTUPINFOW
si
;
PROCESS_INFORMATION
pi
;
WCHAR
*
buffer
;
...
...
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