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
dea850cf
Commit
dea850cf
authored
Oct 08, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regsvr32: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1cba8c3f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
regsvr32.c
programs/regsvr32/regsvr32.c
+3
-5
No files found.
programs/regsvr32/regsvr32.c
View file @
dea850cf
...
...
@@ -114,9 +114,7 @@ static LPCWSTR find_arg_start(LPCWSTR cmdline)
static
void
reexec_self
(
void
)
{
/* restart current process as 32-bit or 64-bit with same command line */
static
const
WCHAR
exe_name
[]
=
{
'\\'
,
'r'
,
'e'
,
'g'
,
's'
,
'v'
,
'r'
,
'3'
,
'2'
,
'.'
,
'e'
,
'x'
,
'e'
,
0
};
#ifndef _WIN64
static
const
WCHAR
sysnative
[]
=
{
'\\'
,
'S'
,
'y'
,
's'
,
'N'
,
'a'
,
't'
,
'i'
,
'v'
,
'e'
,
0
};
BOOL
wow64
;
#endif
WCHAR
systemdir
[
MAX_PATH
];
...
...
@@ -138,16 +136,16 @@ static void reexec_self(void)
}
GetWindowsDirectoryW
(
systemdir
,
MAX_PATH
);
wcscat
(
systemdir
,
sysnative
);
wcscat
(
systemdir
,
L"
\\
SysNative"
);
#endif
args
=
find_arg_start
(
GetCommandLineW
());
cmdline
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
wcslen
(
systemdir
)
+
wcslen
(
exe_name
)
+
wcslen
(
args
)
+
1
)
*
sizeof
(
WCHAR
));
(
wcslen
(
systemdir
)
+
wcslen
(
L"
\\
regsvr32.exe"
)
+
wcslen
(
args
)
+
1
)
*
sizeof
(
WCHAR
));
wcscpy
(
cmdline
,
systemdir
);
wcscat
(
cmdline
,
exe_name
);
wcscat
(
cmdline
,
L"
\\
regsvr32.exe"
);
wcscat
(
cmdline
,
args
);
si
.
cb
=
sizeof
(
si
);
...
...
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