throw exception if DeleteService fails
This commit is contained in:
1 parent
1ce84e00fc
commit
284479c5ea
2 files changed
+4
-2
No files matched your search
@@ -166,7 +166,9 @@ JNIEXPORT jlong SIGAR_JNI(win32_Service_CreateService)
|
||||
JNIEXPORT jboolean SIGAR_JNI(win32_Service_DeleteService)
|
||||
(JNIEnv *env, jclass, jlong handle)
|
||||
{
|
||||
return DeleteService((SC_HANDLE)handle);
|
||||
if (!DeleteService((SC_HANDLE)handle)) {
|
||||
win32_throw_last_error(env);
|
||||
}
|
||||
}
|
||||
|
||||
JNIEXPORT jlong SIGAR_JNI(win32_Service_OpenSCManager)
|
||||
|
||||
Reference in new issue
Block a user