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
085c577a
Commit
085c577a
authored
Apr 30, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
May 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: Fall back to the current architecture if GetBinaryType fails.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
784b617a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
services.c
programs/services/services.c
+3
-3
No files found.
programs/services/services.c
View file @
085c577a
...
...
@@ -723,7 +723,7 @@ static DWORD get_service_binary_path(const struct service_entry *service_entry,
return
ERROR_SUCCESS
;
}
static
DWORD
get_winedevice_binary_path
(
WCHAR
**
path
,
BOOL
*
is_wow64
)
static
DWORD
get_winedevice_binary_path
(
struct
service_entry
*
service_entry
,
WCHAR
**
path
,
BOOL
*
is_wow64
)
{
static
const
WCHAR
winedeviceW
[]
=
{
'\\'
,
'w'
,
'i'
,
'n'
,
'e'
,
'd'
,
'e'
,
'v'
,
'i'
,
'c'
,
'e'
,
'.'
,
'e'
,
'x'
,
'e'
,
0
};
WCHAR
system_dir
[
MAX_PATH
];
...
...
@@ -734,7 +734,7 @@ static DWORD get_winedevice_binary_path(WCHAR **path, BOOL *is_wow64)
else
if
(
GetBinaryTypeW
(
*
path
,
&
type
))
*
is_wow64
=
(
type
==
SCS_32BIT_BINARY
);
else
return
GetLastError
()
;
*
is_wow64
=
service_entry
->
is_wow64
;
GetSystemDirectoryW
(
system_dir
,
MAX_PATH
);
HeapFree
(
GetProcessHeap
(),
0
,
*
path
);
...
...
@@ -857,7 +857,7 @@ static DWORD service_start_process(struct service_entry *service_entry, struct p
struct
service_entry
*
winedevice_entry
;
WCHAR
*
group
;
if
((
err
=
get_winedevice_binary_path
(
&
path
,
&
is_wow64
)))
if
((
err
=
get_winedevice_binary_path
(
service_entry
,
&
path
,
&
is_wow64
)))
{
service_unlock
(
service_entry
);
HeapFree
(
GetProcessHeap
(),
0
,
path
);
...
...
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