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
61812d17
Commit
61812d17
authored
Mar 01, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Moved creation of the DynData registry keys to wineboot.
parent
d8c13bc5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
36 deletions
+17
-36
oldconfig.c
dlls/kernel32/oldconfig.c
+0
-36
wineboot.c
programs/wineboot/wineboot.c
+17
-0
No files found.
dlls/kernel32/oldconfig.c
View file @
61812d17
...
...
@@ -55,39 +55,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
reg
);
/* registry initialisation, allocates some default keys. */
static
ULONG
allocate_default_keys
(
void
)
{
static
const
WCHAR
StatDataW
[]
=
{
'D'
,
'y'
,
'n'
,
'D'
,
'a'
,
't'
,
'a'
,
'\\'
,
'P'
,
'e'
,
'r'
,
'f'
,
'S'
,
't'
,
'a'
,
't'
,
's'
,
'\\'
,
'S'
,
't'
,
'a'
,
't'
,
'D'
,
'a'
,
't'
,
'a'
,
0
};
static
const
WCHAR
ConfigManagerW
[]
=
{
'D'
,
'y'
,
'n'
,
'D'
,
'a'
,
't'
,
'a'
,
'\\'
,
'C'
,
'o'
,
'n'
,
'f'
,
'i'
,
'g'
,
' '
,
'M'
,
'a'
,
'n'
,
'a'
,
'g'
,
'e'
,
'r'
,
'\\'
,
'E'
,
'n'
,
'u'
,
'm'
,
0
};
HANDLE
hkey
;
ULONG
dispos
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
attr
.
Length
=
sizeof
(
attr
);
attr
.
RootDirectory
=
0
;
attr
.
ObjectName
=
&
nameW
;
attr
.
Attributes
=
0
;
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityQualityOfService
=
NULL
;
RtlInitUnicodeString
(
&
nameW
,
StatDataW
);
if
(
!
NtCreateKey
(
&
hkey
,
KEY_ALL_ACCESS
,
&
attr
,
0
,
NULL
,
0
,
&
dispos
))
NtClose
(
hkey
);
if
(
dispos
==
REG_OPENED_EXISTING_KEY
)
return
dispos
;
/* someone else already loaded the registry */
RtlInitUnicodeString
(
&
nameW
,
ConfigManagerW
);
if
(
!
NtCreateKey
(
&
hkey
,
KEY_ALL_ACCESS
,
&
attr
,
0
,
NULL
,
0
,
NULL
))
NtClose
(
hkey
);
return
dispos
;
}
/******************************************************************
* create_scsi_entry
*
...
...
@@ -459,9 +426,6 @@ static void create_hardware_branch(void)
*/
void
convert_old_config
(
void
)
{
if
(
allocate_default_keys
()
==
REG_OPENED_EXISTING_KEY
)
return
;
/* someone else already loaded the registry */
/* create some hardware keys (FIXME: should not be done here) */
create_hardware_branch
();
}
programs/wineboot/wineboot.c
View file @
61812d17
...
...
@@ -233,6 +233,22 @@ static void create_hardware_registry_keys(void)
RegCloseKey
(
system_key
);
}
/* create the DynData registry keys */
static
void
create_dynamic_registry_keys
(
void
)
{
static
const
WCHAR
StatDataW
[]
=
{
'P'
,
'e'
,
'r'
,
'f'
,
'S'
,
't'
,
'a'
,
't'
,
's'
,
'\\'
,
'S'
,
't'
,
'a'
,
't'
,
'D'
,
'a'
,
't'
,
'a'
,
0
};
static
const
WCHAR
ConfigManagerW
[]
=
{
'C'
,
'o'
,
'n'
,
'f'
,
'i'
,
'g'
,
' '
,
'M'
,
'a'
,
'n'
,
'a'
,
'g'
,
'e'
,
'r'
,
'\\'
,
'E'
,
'n'
,
'u'
,
'm'
,
0
};
HKEY
key
;
if
(
!
RegCreateKeyExW
(
HKEY_DYN_DATA
,
StatDataW
,
0
,
NULL
,
0
,
KEY_WRITE
,
NULL
,
&
key
,
NULL
))
RegCloseKey
(
key
);
if
(
!
RegCreateKeyExW
(
HKEY_DYN_DATA
,
ConfigManagerW
,
0
,
NULL
,
0
,
KEY_WRITE
,
NULL
,
&
key
,
NULL
))
RegCloseKey
(
key
);
}
/* create the platform-specific environment registry keys */
static
void
create_environment_registry_keys
(
void
)
{
...
...
@@ -1049,6 +1065,7 @@ int main( int argc, char *argv[] )
ResetEvent
(
event
);
/* in case this is a restart */
create_hardware_registry_keys
();
create_dynamic_registry_keys
();
create_environment_registry_keys
();
wininit
();
pendingRename
();
...
...
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