Skip to content

Commit b486802

Browse files
committed
Fix -clean removing plugin while calling program no signed
1 parent 44f7c0f commit b486802

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/winmain.cpp

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,16 +1474,6 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR lpszCmdLine, int)
14741474
::PathRemoveFileSpec(prog2LaunchDir);
14751475
wstring destPathRoot = params[1];
14761476

1477-
// clean
1478-
for (size_t i = 2; i < nbParam; ++i)
1479-
{
1480-
wstring destPath = destPathRoot;
1481-
::PathAppend(destPath, params[i]);
1482-
deleteFileOrFolder(destPath);
1483-
}
1484-
1485-
1486-
14871477
#ifdef _DEBUG
14881478
// Don't check any thing in debug mode
14891479
#else
@@ -1503,6 +1493,15 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR lpszCmdLine, int)
15031493
return -1;
15041494
}
15051495
#endif
1496+
1497+
// clean
1498+
for (size_t i = 2; i < nbParam; ++i)
1499+
{
1500+
wstring destPath = destPathRoot;
1501+
::PathAppend(destPath, params[i]);
1502+
deleteFileOrFolder(destPath);
1503+
}
1504+
15061505
::ShellExecute(NULL, L"open", prog2Launch.c_str(), NULL, prog2LaunchDir, SW_SHOWNORMAL);
15071506

15081507
return 0;

0 commit comments

Comments
 (0)