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
a0f04767
Commit
a0f04767
authored
Jan 05, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Store the RunKey names in regular string variables.
parent
9ef4a009
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
17 deletions
+9
-17
wineboot.c
programs/wineboot/wineboot.c
+9
-17
No files found.
programs/wineboot/wineboot.c
View file @
a0f04767
...
...
@@ -570,18 +570,6 @@ end:
return
res
;
}
enum
runkeys
{
RUNKEY_RUN
,
RUNKEY_RUNONCE
,
RUNKEY_RUNSERVICES
,
RUNKEY_RUNSERVICESONCE
};
static
const
WCHAR
runkeys_names
[][
30
]
=
{
{
'R'
,
'u'
,
'n'
,
0
},
{
'R'
,
'u'
,
'n'
,
'O'
,
'n'
,
'c'
,
'e'
,
0
},
{
'R'
,
'u'
,
'n'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
's'
,
0
},
{
'R'
,
'u'
,
'n'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
's'
,
'O'
,
'n'
,
'c'
,
'e'
,
0
}
};
#define INVALID_RUNCMD_RETURN -1
/*
* This function runs the specified command in the specified dir.
...
...
@@ -1132,6 +1120,10 @@ static const struct option long_options[] =
int
main
(
int
argc
,
char
*
argv
[]
)
{
extern
HANDLE
CDECL
__wine_make_process_system
(
void
);
static
const
WCHAR
RunW
[]
=
{
'R'
,
'u'
,
'n'
,
0
};
static
const
WCHAR
RunOnceW
[]
=
{
'R'
,
'u'
,
'n'
,
'O'
,
'n'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
RunServicesW
[]
=
{
'R'
,
'u'
,
'n'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
's'
,
0
};
static
const
WCHAR
RunServicesOnceW
[]
=
{
'R'
,
'u'
,
'n'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
's'
,
'O'
,
'n'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
wineboot_eventW
[]
=
{
'_'
,
'_'
,
'w'
,
'i'
,
'n'
,
'e'
,
'b'
,
'o'
,
'o'
,
't'
,
'_'
,
'e'
,
'v'
,
'e'
,
'n'
,
't'
,
0
};
/* First, set the current directory to SystemRoot */
...
...
@@ -1212,23 +1204,23 @@ int main( int argc, char *argv[] )
pendingRename
();
ProcessWindowsFileProtection
();
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
runkeys_names
[
RUNKEY_RUNSERVICESONCE
]
,
TRUE
,
FALSE
);
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
RunServicesOnceW
,
TRUE
,
FALSE
);
if
(
init
||
(
kill
&&
!
restart
))
{
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
runkeys_names
[
RUNKEY_RUNSERVICES
]
,
FALSE
,
FALSE
);
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
RunServicesW
,
FALSE
,
FALSE
);
start_services_process
();
}
if
(
init
||
update
)
update_wineprefix
(
update
);
create_volatile_environment_registry_key
();
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
runkeys_names
[
RUNKEY_RUNONCE
]
,
TRUE
,
TRUE
);
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
RunOnceW
,
TRUE
,
TRUE
);
if
(
!
init
&&
!
restart
)
{
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
runkeys_names
[
RUNKEY_RUN
]
,
FALSE
,
FALSE
);
ProcessRunKeys
(
HKEY_CURRENT_USER
,
runkeys_names
[
RUNKEY_RUN
]
,
FALSE
,
FALSE
);
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
RunW
,
FALSE
,
FALSE
);
ProcessRunKeys
(
HKEY_CURRENT_USER
,
RunW
,
FALSE
,
FALSE
);
ProcessStartupItems
();
}
...
...
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