Author: mladen.turk(a)jboss.com
Date: 2007-10-22 02:58:23 -0400 (Mon, 22 Oct 2007)
New Revision: 1140
Modified:
trunk/sight/native/os/windows/scm.c
Log:
Fix services enum for Windows. We are using non-unicode structure
Modified: trunk/sight/native/os/windows/scm.c
===================================================================
--- trunk/sight/native/os/windows/scm.c 2007-10-19 10:09:10 UTC (rev 1139)
+++ trunk/sight/native/os/windows/scm.c 2007-10-22 06:58:23 UTC (rev 1140)
@@ -145,7 +145,7 @@
if (SIGHT_LOCAL_IRQ(no)) {
ea = NULL;
SIGHT_LOCAL_BRK(no);
- goto cleanup;
+ goto cleanup;
}
rt = EnumServicesStatusExA(no->native,
SC_ENUM_PROCESS_INFO,
@@ -194,7 +194,7 @@
DWORD i;
lpService = (LPENUM_SERVICE_STATUS_PROCESSA)&head->data[0];
for (i = 0; i < head->size; i++) {
- jstring s = WSTR_TO_JSTRING(lpService[i].lpServiceName);
+ jstring s = CSTR_TO_JSTRING(lpService[i].lpServiceName);
if (s)
(*_E)->SetObjectArrayElement(_E, ea, idx++, s);
else
Show replies by date