From 34c1b1e0976f1d94670266c4f1f8f10c5539de5e Mon Sep 17 00:00:00 2001 From: "METANEOCORTEX\\Kotti" Date: Mon, 29 Aug 2022 11:59:02 +0200 Subject: [PATCH] +fix: Directory locking of current file. --- src/Notepad3.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Notepad3.c b/src/Notepad3.c index 70f200ce1..0df18ae40 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -10672,14 +10672,6 @@ bool FileLoad(const HPATHL hfile_pth, FileLoadFlags fLoadFlags) Path_NormalizeEx(hopen_file, Paths.WorkingDirectory, true, Flags.bSearchPathIfRelative); - // change current directory to prevent directory lock on another path - HPATHL hdir_pth = Path_Copy(hopen_file); - Path_RemoveFileSpec(hdir_pth); - if (Path_IsExistingDirectory(hdir_pth)) { - SetCurrentDirectoryW(Path_Get(hdir_pth)); - } - Path_Release(hdir_pth); - // Ask to create a new file... if (!(fLoadFlags & FLF_Reload) && !Path_IsExistingFile(hopen_file)) { bool bCreateFile = s_flagQuietCreate;