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
528c7a5f
Commit
528c7a5f
authored
Feb 07, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svchost: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e704f037
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
Makefile.in
programs/svchost/Makefile.in
+0
-1
svchost.c
programs/svchost/svchost.c
+7
-7
No files found.
programs/svchost/Makefile.in
View file @
528c7a5f
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
svchost.exe
IMPORTS
=
advapi32
...
...
programs/svchost/svchost.c
View file @
528c7a5f
...
...
@@ -86,7 +86,7 @@ static LPWSTR ExpandEnv(LPWSTR string)
size
=
ExpandEnvironmentStringsW
(
string
,
NULL
,
size
);
if
(
size
==
0
)
{
WINE_ERR
(
"cannot expand env vars in %s: %u
\n
"
,
WINE_ERR
(
"cannot expand env vars in %s: %
l
u
\n
"
,
wine_dbgstr_w
(
string
),
GetLastError
());
return
NULL
;
}
...
...
@@ -94,7 +94,7 @@ static LPWSTR ExpandEnv(LPWSTR string)
(
size
+
1
)
*
sizeof
(
WCHAR
));
if
(
ExpandEnvironmentStringsW
(
string
,
expanded_string
,
size
)
==
0
)
{
WINE_ERR
(
"cannot expand env vars in %s: %u
\n
"
,
WINE_ERR
(
"cannot expand env vars in %s: %
l
u
\n
"
,
wine_dbgstr_w
(
string
),
GetLastError
());
HeapFree
(
GetProcessHeap
(),
0
,
expanded_string
);
return
NULL
;
...
...
@@ -134,7 +134,7 @@ static BOOL AddServiceElem(LPWSTR service_name,
KEY_READ
,
&
service_hkey
);
if
(
ret
!=
ERROR_SUCCESS
)
{
WINE_ERR
(
"cannot open key %s, err=%d
\n
"
,
WINE_ERR
(
"cannot open key %s, err=%
l
d
\n
"
,
wine_dbgstr_w
(
service_param_key
),
ret
);
goto
cleanup
;
}
...
...
@@ -182,7 +182,7 @@ static BOOL AddServiceElem(LPWSTR service_name,
library
=
LoadLibraryExW
(
dll_name_long
,
NULL
,
LOAD_WITH_ALTERED_SEARCH_PATH
);
if
(
!
library
)
{
WINE_ERR
(
"failed to load library %s, err=%u
\n
"
,
WINE_ERR
(
"failed to load library %s, err=%
l
u
\n
"
,
wine_dbgstr_w
(
dll_name_long
),
GetLastError
());
goto
cleanup
;
}
...
...
@@ -240,7 +240,7 @@ static BOOL StartGroupServices(LPWSTR services)
service_name
=
service_name
+
lstrlenW
(
service_name
);
++
service_name
;
}
WINE_TRACE
(
"Service group contains %d services
\n
"
,
service_count
);
WINE_TRACE
(
"Service group contains %
l
d services
\n
"
,
service_count
);
/* Populate the service table */
service_table
=
HeapAlloc
(
GetProcessHeap
(),
0
,
...
...
@@ -263,7 +263,7 @@ static BOOL StartGroupServices(LPWSTR services)
/* Start the services */
if
(
!
(
ret
=
StartServiceCtrlDispatcherW
(
service_table
)))
WINE_ERR
(
"StartServiceCtrlDispatcherW failed to start %s: %u
\n
"
,
WINE_ERR
(
"StartServiceCtrlDispatcherW failed to start %s: %
l
u
\n
"
,
wine_dbgstr_w
(
services
),
GetLastError
());
HeapFree
(
GetProcessHeap
(),
0
,
service_table
);
...
...
@@ -285,7 +285,7 @@ static BOOL LoadGroup(PWCHAR group_name)
KEY_READ
,
&
group_hkey
);
if
(
ret
!=
ERROR_SUCCESS
)
{
WINE_ERR
(
"cannot open key %s, err=%d
\n
"
,
WINE_ERR
(
"cannot open key %s, err=%
l
d
\n
"
,
wine_dbgstr_w
(
svchost_path
),
ret
);
return
FALSE
;
}
...
...
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