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
c0977fcb
Commit
c0977fcb
authored
Apr 27, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: Make svcctl_{Lock, Unlock}ServiceDatabase() into a no-op.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
529b07ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
38 deletions
+6
-38
rpc.c
programs/services/rpc.c
+6
-38
No files found.
programs/services/rpc.c
View file @
c0977fcb
...
...
@@ -1365,55 +1365,23 @@ DWORD __cdecl svcctl_CloseServiceHandle(
return
ERROR_SUCCESS
;
}
static
void
SC_RPC_LOCK_destroy
(
SC_RPC_LOCK
hLock
)
{
struct
sc_lock
*
lock
=
hLock
;
scmdatabase_unlock_startup
(
lock
->
db
);
HeapFree
(
GetProcessHeap
(),
0
,
lock
);
}
void
__RPC_USER
SC_RPC_LOCK_rundown
(
SC_RPC_LOCK
hLock
)
{
SC_RPC_LOCK_destroy
(
hLock
);
}
DWORD
__cdecl
svcctl_LockServiceDatabase
(
SC_RPC_HANDLE
hSCManager
,
SC_RPC_LOCK
*
phLock
)
DWORD
__cdecl
svcctl_LockServiceDatabase
(
SC_RPC_HANDLE
manager
,
SC_RPC_LOCK
*
lock
)
{
struct
sc_manager_handle
*
manager
;
struct
sc_lock
*
lock
;
DWORD
err
;
WINE_TRACE
(
"(%p, %p)
\n
"
,
hSCManager
,
phLock
);
if
((
err
=
validate_scm_handle
(
hSCManager
,
SC_MANAGER_LOCK
,
&
manager
))
!=
ERROR_SUCCESS
)
return
err
;
if
(
!
scmdatabase_lock_startup
(
manager
->
db
,
0
))
return
ERROR_SERVICE_DATABASE_LOCKED
;
lock
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
sc_lock
));
if
(
!
lock
)
{
scmdatabase_unlock_startup
(
manager
->
db
);
return
ERROR_NOT_ENOUGH_SERVER_MEMORY
;
}
lock
->
db
=
manager
->
db
;
*
phLock
=
lock
;
TRACE
(
"(%p, %p)
\n
"
,
manager
,
lock
);
*
lock
=
(
SC_RPC_LOCK
)
0xdeadbeef
;
return
ERROR_SUCCESS
;
}
DWORD
__cdecl
svcctl_UnlockServiceDatabase
(
SC_RPC_LOCK
*
phLock
)
DWORD
__cdecl
svcctl_UnlockServiceDatabase
(
SC_RPC_LOCK
*
lock
)
{
WINE_TRACE
(
"(&%p)
\n
"
,
*
phLock
);
SC_RPC_LOCK_destroy
(
*
phLock
);
*
phLock
=
NULL
;
TRACE
(
"(&%p)
\n
"
,
*
lock
);
*
lock
=
NULL
;
return
ERROR_SUCCESS
;
}
...
...
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