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
741dd708
Commit
741dd708
authored
Sep 17, 2008
by
Peter Dons Tychsen
Committed by
Alexandre Julliard
Sep 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: Fixed problem with services where DependOnServices key is REG_SZ and not REG_MULTI_SZ.
parent
62823d27
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
services.c
programs/services/services.c
+2
-2
services.h
programs/services/services.h
+1
-1
utils.c
programs/services/utils.c
+2
-2
No files found.
programs/services/services.c
View file @
741dd708
...
...
@@ -106,9 +106,9 @@ static DWORD load_service_config(HKEY hKey, struct service_entry *entry)
return
err
;
if
((
err
=
load_reg_string
(
hKey
,
SZ_DESCRIPTION
,
0
,
&
entry
->
description
))
!=
0
)
return
err
;
if
((
err
=
load_reg_multisz
(
hKey
,
SZ_DEPEND_ON_SERVICE
,
&
entry
->
dependOnServices
))
!=
0
)
if
((
err
=
load_reg_multisz
(
hKey
,
SZ_DEPEND_ON_SERVICE
,
TRUE
,
&
entry
->
dependOnServices
))
!=
0
)
return
err
;
if
((
err
=
load_reg_multisz
(
hKey
,
SZ_DEPEND_ON_GROUP
,
&
entry
->
dependOnGroups
))
!=
0
)
if
((
err
=
load_reg_multisz
(
hKey
,
SZ_DEPEND_ON_GROUP
,
FALSE
,
&
entry
->
dependOnGroups
))
!=
0
)
return
err
;
if
((
err
=
load_reg_dword
(
hKey
,
SZ_TYPE
,
&
entry
->
config
.
dwServiceType
))
!=
0
)
...
...
programs/services/services.h
View file @
741dd708
...
...
@@ -87,7 +87,7 @@ LPWSTR strdupW(LPCWSTR str);
BOOL
check_multisz
(
LPCWSTR
lpMultiSz
,
DWORD
cbSize
);
DWORD
load_reg_string
(
HKEY
hKey
,
LPCWSTR
szValue
,
BOOL
bExpand
,
LPWSTR
*
output
);
DWORD
load_reg_multisz
(
HKEY
hKey
,
LPCWSTR
szValue
,
LPWSTR
*
output
);
DWORD
load_reg_multisz
(
HKEY
hKey
,
LPCWSTR
szValue
,
BOOL
bAllowSingle
,
LPWSTR
*
output
);
DWORD
load_reg_dword
(
HKEY
hKey
,
LPCWSTR
szValue
,
DWORD
*
output
);
static
inline
LPCWSTR
get_display_name
(
struct
service_entry
*
service
)
...
...
programs/services/utils.c
View file @
741dd708
...
...
@@ -102,7 +102,7 @@ failed:
return
err
;
}
DWORD
load_reg_multisz
(
HKEY
hKey
,
LPCWSTR
szValue
,
LPWSTR
*
output
)
DWORD
load_reg_multisz
(
HKEY
hKey
,
LPCWSTR
szValue
,
BOOL
bAllowSingle
,
LPWSTR
*
output
)
{
DWORD
size
,
type
;
LPWSTR
buf
=
NULL
;
...
...
@@ -118,7 +118,7 @@ DWORD load_reg_multisz(HKEY hKey, LPCWSTR szValue, LPWSTR *output)
}
goto
failed
;
}
if
(
type
!=
REG_MULTI_SZ
)
if
(
!
((
type
==
REG_MULTI_SZ
)
||
((
type
==
REG_SZ
)
&&
bAllowSingle
))
)
{
err
=
ERROR_INVALID_DATATYPE
;
goto
failed
;
...
...
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