mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
(Windows) Fixed an issue where symlinking media directories would crash the application.
This commit is contained in:
parent
ca86260ef0
commit
9df3436d82
|
@ -630,7 +630,7 @@ namespace Utils
|
|||
if (GetFinalPathNameByHandleW(hFile, const_cast<LPWSTR>(resolvedW.data()),
|
||||
static_cast<DWORD>(resolvedW.size()),
|
||||
FILE_NAME_NORMALIZED) > 0) {
|
||||
resolvedW.resize(resolvedW.size() - 1);
|
||||
resolvedW.resize(resolvedW.size() - 2);
|
||||
resolved = getGenericPath(Utils::String::wideStringToString(resolvedW));
|
||||
}
|
||||
CloseHandle(hFile);
|
||||
|
|
Loading…
Reference in a new issue