wpa_gui: Fix Windows build
This commit is contained in:
parent
be48214d2b
commit
df9b245e76
1 changed files with 2 additions and 2 deletions
|
@ -1705,13 +1705,13 @@ bool WpaGui::serviceRunning()
|
||||||
|
|
||||||
scm = OpenSCManager(0, 0, SC_MANAGER_CONNECT);
|
scm = OpenSCManager(0, 0, SC_MANAGER_CONNECT);
|
||||||
if (!scm) {
|
if (!scm) {
|
||||||
printf(tr("OpenSCManager failed: %d\n"), (int) GetLastError());
|
printf("OpenSCManager failed: %d\n", (int) GetLastError());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
svc = OpenService(scm, WPASVC_NAME, SERVICE_QUERY_STATUS);
|
svc = OpenService(scm, WPASVC_NAME, SERVICE_QUERY_STATUS);
|
||||||
if (!svc) {
|
if (!svc) {
|
||||||
printf(tr("OpenService failed: %d\n\n"), (int) GetLastError());
|
printf("OpenService failed: %d\n\n", (int) GetLastError());
|
||||||
CloseServiceHandle(scm);
|
CloseServiceHandle(scm);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue