+fix: relaunch multi instances: don't cascade if pos param already defined

This commit is contained in:
METANEOCORTEX\Kotti 2021-11-19 17:09:02 +01:00
parent 46da60aa8e
commit 96e65a4680

View File

@ -11360,7 +11360,9 @@ bool RelaunchMultiInst()
wi.x += (i * offset);
wi.y += (i * offset);
WCHAR wchPos[80] = { L'\0' };
StringCchPrintf(wchPos, COUNTOF(wchPos), L" -pos %i,%i,%i,%i,%i", wi.x, wi.y, wi.cx, wi.cy, (int)wi.max);
if (!Globals.CmdLnFlag_PosParam) {
StringCchPrintf(wchPos, COUNTOF(wchPos), L" -pos %i,%i,%i,%i,%i", wi.x, wi.y, wi.cx, wi.cy, (int)wi.max);
}
size_t const pl = StringCchLen(wchPos, 80) + 1;
StringCchCopy(lpCmdLineNew, len, lpCmdLine);