diff options
author | georgehazan <ghazan@miranda.im> | 2022-05-10 13:42:55 +0300 |
---|---|---|
committer | georgehazan <ghazan@miranda.im> | 2022-05-10 13:59:15 +0300 |
commit | 3f63549751e03b378801fe3e69c0017d81edc7bb (patch) | |
tree | 76efc88017ad5ba2c664f2f064a427c98a2e3eea /include | |
parent | e2d5e7a3da31049495e2e43a6856d68709827ccd (diff) |
fix for MFilePath under Linux
Diffstat (limited to 'include')
-rw-r--r-- | include/m_utils.h | 9 |
1 files changed, 8 insertions, 1 deletions
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;
|