Преглед изворни кода

FIX: Bug [0001778] WLX plugin Imagine lock current directory

Alexander Koblov пре 1 година
родитељ
комит
d067079e0a
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      src/uwlxmodule.pas

+ 5 - 1
src/uwlxmodule.pas

@@ -4,7 +4,7 @@
    WLX-API implementation (TC WLX-API v2.0).
 
    Copyright (C) 2008  Dmitry Kolomiets ([email protected])
-   Copyright (C) 2009-2020 Alexander Koblov ([email protected])
+   Copyright (C) 2009-2023 Alexander Koblov ([email protected])
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -426,6 +426,10 @@ begin
 {$ENDIF}
   finally
     FPluginWindow := 0;
+{$IF DEFINED(MSWINDOWS)}
+    // Reset current directory
+    SetCurrentDirectoryW(PWideChar(CeUtf8ToUtf16(gpExePath)));
+{$ENDIF}
   end;
   //  DCDebug('Call ListCloseWindow success');
 end;