From f972ddf32f91547fc4dfcb39796a055fea3cf41a Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sat, 23 Oct 2021 03:50:47 +0200 Subject: [PATCH] Common/FileUtil: Fix incorrect (32-bit) stat struct being used on Windows, which was hidden by a define in CommonFuncs.h. --- Source/Core/Common/FileUtil.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/Common/FileUtil.h b/Source/Core/Common/FileUtil.h index 9c1116943c..46bcdb150f 100644 --- a/Source/Core/Common/FileUtil.h +++ b/Source/Core/Common/FileUtil.h @@ -120,7 +120,11 @@ private: void AndroidContentInit(const std::string& path); #endif +#ifdef _WIN32 + struct __stat64 m_stat; +#else struct stat m_stat; +#endif bool m_exists; };