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
14aaa0a3
Commit
14aaa0a3
authored
Apr 09, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecrt0: Replace SystemRoot when registering dlls.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3aa56661
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
register.c
dlls/winecrt0/register.c
+3
-0
No files found.
dlls/winecrt0/register.c
View file @
14aaa0a3
...
...
@@ -32,6 +32,7 @@
static
const
WCHAR
atl100W
[]
=
{
'a'
,
't'
,
'l'
,
'1'
,
'0'
,
'0'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
regtypeW
[]
=
{
'W'
,
'I'
,
'N'
,
'E'
,
'_'
,
'R'
,
'E'
,
'G'
,
'I'
,
'S'
,
'T'
,
'R'
,
'Y'
,
0
};
static
const
WCHAR
moduleW
[]
=
{
'M'
,
'O'
,
'D'
,
'U'
,
'L'
,
'E'
,
0
};
static
const
WCHAR
systemrootW
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'R'
,
'o'
,
'o'
,
't'
,
0
};
struct
reg_info
{
...
...
@@ -62,6 +63,8 @@ static IRegistrar *create_registrar( HMODULE inst, struct reg_info *info )
GetModuleFileNameW
(
inst
,
str
,
MAX_PATH
);
IRegistrar_AddReplacement
(
info
->
registrar
,
moduleW
,
str
);
GetEnvironmentVariableW
(
systemrootW
,
str
,
MAX_PATH
);
IRegistrar_AddReplacement
(
info
->
registrar
,
systemrootW
,
str
);
}
return
info
->
registrar
;
}
...
...
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