git://git.iain.cx/iain
/
nssm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8835843
)
Open registry with read/write when setting parameters.
author
Iain Patterson
<me@iain.cx>
Thu, 21 Jul 2016 09:49:02 +0000
(10:49 +0100)
committer
Iain Patterson
<me@iain.cx>
Thu, 28 Jul 2016 15:44:18 +0000
(16:44 +0100)
We may need to query existing settings so we need KEY_READ as well as
KEY_WRITE access.
service.cpp
patch
|
blob
|
history
diff --git
a/service.cpp
b/service.cpp
index
164fbc0
..
79c2f56
100644
(file)
--- a/
service.cpp
+++ b/
service.cpp
@@
-1072,7
+1072,7
@@
int pre_edit_service(int argc, TCHAR **argv) {
}
\r
\r
if (! service->native) {
\r
- key = open_registry(service->name, KEY_WRITE);
\r
+ key = open_registry(service->name, KEY_
READ | KEY_
WRITE);
\r
if (! key) {
\r
if (value.string) HeapFree(GetProcessHeap(), 0, value.string);
\r
return 4;
\r