Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

Commit 0a1c871

Browse files
committed
Added forwarding of command line arguments to Skype process
1 parent 2cb9d18 commit 0a1c871

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

purifier/launcher.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static void KillWanderingBrowserHost()
142142
auto foundSkype = FindProcessByName(procList, L"Skype.exe");
143143
auto foundBrowserHost = FindProcessByName(procList, L"SkypeBrowserHost.exe");
144144

145-
if (foundSkype.size() == 0 && foundBrowserHost.size() > 0) {
145+
if (foundSkype.size() == 0) {
146146
// kill all browser hosts
147147
for (uint32_t idx : foundBrowserHost) {
148148
DEBUG_MSG(L"Killing pid: %d\n", procList[idx].pid);
@@ -167,7 +167,7 @@ static void KillWanderingBrowserHost()
167167

168168

169169

170-
int WINAPI wWinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPWSTR, _In_ int)
170+
int WINAPI wWinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPWSTR lpCmdLine, _In_ int)
171171
{
172172
DebugConsole dbgConsole;
173173

@@ -191,7 +191,7 @@ int WINAPI wWinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPWSTR, _In_ int)
191191
DEBUG_MSG(L"Skype path: %s\n", pathSkypeExe.c_str());
192192

193193
// create and purify skype.exe
194-
auto createdPid = CreatePurifiedProcess(pathSkypeExe.c_str(), nullptr, pathPayload.c_str());
194+
auto createdPid = CreatePurifiedProcess(pathSkypeExe.c_str(), lpCmdLine, pathPayload.c_str());
195195
if (createdPid == 0) {
196196
auto errCode = GetLastError();
197197
ErrorMessageBox(L"CreatePurifiedProcess()", errCode);

0 commit comments

Comments
 (0)