diff options
author | 2022-06-16 12:37:26 +1000 | |
---|---|---|
committer | 2022-06-16 12:37:26 +1000 | |
commit | 731a6bbe8ac51a5ff006a0bca574a96f8f498051 (patch) | |
tree | 546c8b0812269188490334548bdf159d2843bfa7 /src/osd/modules/file/winrtfile.cpp | |
parent | 4e2121d8aa3a982288849c08500712f0cb2d96bc (diff) | |
parent | e7fe75fd5c901a2b62456dcfa2fbd6144bebf233 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/osd/modules/file/winrtfile.cpp')
-rw-r--r-- | src/osd/modules/file/winrtfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/modules/file/winrtfile.cpp b/src/osd/modules/file/winrtfile.cpp index bc45ead48ae..3de1c19605d 100644 --- a/src/osd/modules/file/winrtfile.cpp +++ b/src/osd/modules/file/winrtfile.cpp @@ -163,8 +163,8 @@ DWORD create_path_recursive(TCHAR *path) osd_file::error osd_file::open(std::string const &orig_path, uint32_t openflags, ptr &file, std::uint64_t &filesize) { std::string path; - try { osd_subst_env(path, orig_path); } - catch (...) { return error::OUT_OF_MEMORY; } + try { path = osd_subst_env(orig_path); } + catch (...) { return std::errc::not_enough_memory; } if (win_check_socket_path(path)) return win_open_socket(path, openflags, file, filesize); |