Silence AV in 64 bit mode when preventing second application instance. Fixes issue #3475.

This commit is contained in:
Ansgar Becker
2013-12-19 04:42:25 +00:00
parent 11560688cb
commit 86cc4c822f

View File

@ -1960,7 +1960,8 @@ begin
Dat.dwData := SecondInstMsgId;
Dat.lpData := ParamStrToBlob(Dat.cbData);
SendMessage(Wnd, WM_COPYDATA, 0, LPARAM(@Dat));
FreeMemory(Dat.lpData);
// Leads to an AV in 64bit mode. See issue #3475:
// FreeMemory(Dat.lpData);
// Bring first instance to front
if not IsWindowVisible(Wnd) then