ServiceType,
StartType,
ErrorControl,
- ServiceBinary,
+ /* BIG HACK!!! As GetLineText() give us a full path, ignore the
+ * first letters which should be the OS directory. If that's not
+ * the case, the file name written to registry will be bad and
+ * the driver will not load...
+ */
+ ServiceBinary + GetWindowsDirectoryW(NULL, 0),
LoadOrderGroup,
NULL,
Dependencies,
CloseServiceHandle(hSCManager);
return FALSE;
}
- CloseServiceHandle(hService);
+ //CloseServiceHandle(hService);
return CloseServiceHandle(hSCManager);
}