Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
a0f04767
Commit
a0f04767
authored
13 years ago
by
Francois Gouget
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
wineboot: Store the RunKey names in regular string variables.
parent
9ef4a009
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
programs/wineboot/wineboot.c
+9
-17
9 additions, 17 deletions
programs/wineboot/wineboot.c
with
9 additions
and
17 deletions
programs/wineboot/wineboot.c
+
9
−
17
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
,
r
un
keys_names
[
RUNKEY_RUNSERVICESONCE
]
,
TRUE
,
FALSE
);
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
R
un
ServicesOnceW
,
TRUE
,
FALSE
);
if
(
init
||
(
kill
&&
!
restart
))
{
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
r
un
keys_names
[
RUNKEY_RUNSERVICES
]
,
FALSE
,
FALSE
);
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
R
un
ServicesW
,
FALSE
,
FALSE
);
start_services_process
();
}
if
(
init
||
update
)
update_wineprefix
(
update
);
create_volatile_environment_registry_key
();
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
r
un
keys_names
[
RUNKEY_RUNONCE
]
,
TRUE
,
TRUE
);
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
R
un
OnceW
,
TRUE
,
TRUE
);
if
(
!
init
&&
!
restart
)
{
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
r
un
keys_names
[
RUNKEY_RUN
]
,
FALSE
,
FALSE
);
ProcessRunKeys
(
HKEY_CURRENT_USER
,
r
un
keys_names
[
RUNKEY_RUN
]
,
FALSE
,
FALSE
);
ProcessRunKeys
(
HKEY_LOCAL_MACHINE
,
R
un
W
,
FALSE
,
FALSE
);
ProcessRunKeys
(
HKEY_CURRENT_USER
,
R
un
W
,
FALSE
,
FALSE
);
ProcessStartupItems
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment