summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/file/winrtfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/file/winrtfile.cpp')
-rw-r--r--src/osd/modules/file/winrtfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/modules/file/winrtfile.cpp b/src/osd/modules/file/winrtfile.cpp
index cab2c75d5a5..bc45ead48ae 100644
--- a/src/osd/modules/file/winrtfile.cpp
+++ b/src/osd/modules/file/winrtfile.cpp
@@ -350,7 +350,7 @@ osd_file::error osd_get_full_path(std::string &dst, std::string const &path)
// canonicalize the path
TCHAR buffer[MAX_PATH];
- if (!GetFullPathName(t_path.c_str(), ARRAY_LENGTH(buffer), buffer, nullptr))
+ if (!GetFullPathName(t_path.c_str(), std::size(buffer), buffer, nullptr))
return win_error_to_file_error(GetLastError());
// convert the result back to UTF-8