Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
97ad5a7e
Commit
97ad5a7e
authored
Jan 02, 2001
by
François Gouget
Committed by
Alexandre Julliard
Jan 02, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some 0 vs. FALSE mismatches.
Fixed a '%x' vs. '%lx' mismatch. Fixed some DWORD vs. SC_HANDLE mismatches.
parent
29625ff5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
service.c
dlls/advapi32/service.c
+6
-6
No files found.
dlls/advapi32/service.c
View file @
97ad5a7e
...
...
@@ -31,7 +31,7 @@ EnumServicesStatusA( SC_HANDLE hSCManager, DWORD dwServiceType,
dwServiceType
,
dwServiceState
,
lpServices
,
cbBufSize
,
pcbBytesNeeded
,
lpServicesReturned
,
lpResumeHandle
);
SetLastError
(
ERROR_ACCESS_DENIED
);
return
0
;
return
FALSE
;
}
/******************************************************************************
...
...
@@ -46,7 +46,7 @@ EnumServicesStatusW( SC_HANDLE hSCManager, DWORD dwServiceType,
dwServiceType
,
dwServiceState
,
lpServices
,
cbBufSize
,
pcbBytesNeeded
,
lpServicesReturned
,
lpResumeHandle
);
SetLastError
(
ERROR_ACCESS_DENIED
);
return
0
;
return
FALSE
;
}
/******************************************************************************
...
...
@@ -183,7 +183,7 @@ RegisterServiceCtrlHandlerW( LPCWSTR lpServiceName,
*/
BOOL
WINAPI
SetServiceStatus
(
SERVICE_STATUS_HANDLE
hService
,
LPSERVICE_STATUS
lpStatus
)
{
FIXME
(
"
%
x %p
\n
"
,
hService
,
lpStatus
);
{
FIXME
(
"
0x%l
x %p
\n
"
,
hService
,
lpStatus
);
TRACE
(
"
\t
Type:%lx
\n
"
,
lpStatus
->
dwServiceType
);
TRACE
(
"
\t
State:%lx
\n
"
,
lpStatus
->
dwCurrentState
);
TRACE
(
"
\t
ControlAccepted:%lx
\n
"
,
lpStatus
->
dwControlsAccepted
);
...
...
@@ -203,7 +203,7 @@ OpenSCManagerA( LPCSTR lpMachineName, LPCSTR lpDatabaseName,
{
LPWSTR
lpMachineNameW
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
lpMachineName
);
LPWSTR
lpDatabaseNameW
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
lpDatabaseName
);
DWORD
ret
=
OpenSCManagerW
(
lpMachineNameW
,
lpDatabaseNameW
,
SC_HANDLE
ret
=
OpenSCManagerW
(
lpMachineNameW
,
lpDatabaseNameW
,
dwDesiredAccess
);
HeapFree
(
GetProcessHeap
(),
0
,
lpDatabaseNameW
);
HeapFree
(
GetProcessHeap
(),
0
,
lpMachineNameW
);
...
...
@@ -315,7 +315,7 @@ OpenServiceA( SC_HANDLE hSCManager, LPCSTR lpServiceName,
DWORD
dwDesiredAccess
)
{
LPWSTR
lpServiceNameW
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
lpServiceName
);
DWORD
ret
;
SC_HANDLE
ret
;
if
(
lpServiceName
)
TRACE
(
"Request for service %s
\n
"
,
lpServiceName
);
...
...
@@ -380,7 +380,7 @@ CreateServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName,
LPCWSTR
lpPassword
)
{
FIXME
(
"(%u,%s,%s,...)
\n
"
,
hSCManager
,
debugstr_w
(
lpServiceName
),
debugstr_w
(
lpDisplayName
));
return
FALSE
;
return
0
;
}
...
...
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