Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ComIOP/Wrapper/Common/COpcClassFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ static bool InstallService(
GOTOFINALLY();
}

//append the double quotes - Registery Image Path (Security)
COpcString binaryPath = tsFilePath;
binaryPath = "\"" + binaryPath + "\"";

// create service.
hService = CreateService(
hSCM,
Expand All @@ -77,7 +81,7 @@ static bool InstallService(
SERVICE_WIN32_OWN_PROCESS,
SERVICE_DEMAND_START,
SERVICE_ERROR_NORMAL,
tsFilePath,
binaryPath,
NULL,
NULL,
_T("RPCSS\0"),
Expand Down