diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-01-08 20:47:24 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-01-08 20:47:24 -0800 |
commit | 48cedbae66803b393fd98fecf0d801a4963f45d0 (patch) | |
tree | 7899e12acb51a80882761935a7082e8196f9cfe4 /rpcapd | |
parent | 0dd92d7d9944b158511e27795ff6952c17fd3497 (diff) | |
download | libpcap-48cedbae66803b393fd98fecf0d801a4963f45d0.tar.gz |
Fix some errors.
Diffstat (limited to 'rpcapd')
-rw-r--r-- | rpcapd/win32-svc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rpcapd/win32-svc.c b/rpcapd/win32-svc.c index 5d132a06..40c8303f 100644 --- a/rpcapd/win32-svc.c +++ b/rpcapd/win32-svc.c @@ -46,6 +46,7 @@ static void update_svc_status(DWORD state, DWORD progress_indicator); int svc_start(void) { + int rc; SERVICE_TABLE_ENTRY ste[] = { { PROGRAM_NAME, svc_main }, @@ -55,7 +56,7 @@ int svc_start(void) // This call is blocking. A new thread is created which will launch // the svc_main() function - if (StartServiceCtrlDispatcher(ste) == 0) { + if ((rc = StartServiceCtrlDispatcher(ste)) == 0) { pcap_win32_err_to_str(GetLastError(), string); rpcapd_log(LOGPRIO_ERROR, "StartServiceCtrlDispatcher() failed: %s", string); |