mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Use id of current process in registry key, not the thread id.
This commit is contained in:
@ -3515,7 +3515,7 @@ begin
|
||||
|
||||
// Open the right key
|
||||
if StartupMode then begin
|
||||
RegPath := '\Software\' + APPNAME + ' Portable '+IntToStr(GetCurrentThreadId)+'\';
|
||||
RegPath := '\Software\' + APPNAME + ' Portable '+IntToStr(GetCurrentProcessId)+'\';
|
||||
PortableMode := True;
|
||||
end else begin
|
||||
// Do not work like a portable on exit, if at application start we didn't either
|
||||
|
Reference in New Issue
Block a user