From 3f63549751e03b378801fe3e69c0017d81edc7bb Mon Sep 17 00:00:00 2001 From: georgehazan Date: Tue, 10 May 2022 13:42:55 +0300 Subject: fix for MFilePath under Linux --- include/m_utils.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/m_utils.h b/include/m_utils.h index fc9ede2ecd..fbd10166ab 100644 --- a/include/m_utils.h +++ b/include/m_utils.h @@ -254,6 +254,9 @@ class MIR_CORE_EXPORT MFilePath : public CMStringW #ifdef _WINDOWS WIN32_FIND_DATAW m_data; HANDLE m_hFind = INVALID_HANDLE_VALUE; + #else + wchar_t m_path[MAX_PATH]; + int m_flags; #endif class iterator @@ -271,7 +274,11 @@ class MIR_CORE_EXPORT MFilePath : public CMStringW MFileIterator(const wchar_t*); ~MFileIterator(); - __inline const wchar_t* getPath() const { return m_data.cFileName; } + #ifdef _WINDOWS + __inline const wchar_t* getPath() const { return m_data.cFileName; } + #else + __inline const wchar_t* getPath() const { return m_path; } + #endif bool isDir() const; -- cgit v1.2.3