Skip to content

Commit a38734f

Browse files
committed
fix(windows): ensure proper path conversion on Windows
ensure we properly convert any file paths to a long path form as necessary on Windows Signed-off-by: Matthieu Gallien <[email protected]>
1 parent 2335ff0 commit a38734f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/csync/std/c_time.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ int c_utimes(const QString &uri, const time_t time)
5252
FILETIME filetime;
5353
HANDLE hFile = nullptr;
5454

55-
const auto wuri = reinterpret_cast<const wchar_t *>(OCC::FileSystem::longWinPath(uri).utf16());
55+
const auto longPathUri = OCC::FileSystem::longWinPath(uri);
56+
const auto wuri = reinterpret_cast<const wchar_t *>(longPathUri.utf16());
5657

5758
UnixTimeToFiletime(time, &filetime);
5859

0 commit comments

Comments
 (0)