mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 01:56:36 +08:00
Silence AV in 64 bit mode when preventing second application instance. Fixes issue #3475.
This commit is contained in:
@ -1960,7 +1960,8 @@ begin
|
|||||||
Dat.dwData := SecondInstMsgId;
|
Dat.dwData := SecondInstMsgId;
|
||||||
Dat.lpData := ParamStrToBlob(Dat.cbData);
|
Dat.lpData := ParamStrToBlob(Dat.cbData);
|
||||||
SendMessage(Wnd, WM_COPYDATA, 0, LPARAM(@Dat));
|
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
|
// Bring first instance to front
|
||||||
if not IsWindowVisible(Wnd) then
|
if not IsWindowVisible(Wnd) then
|
||||||
|
Reference in New Issue
Block a user