diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-18 03:03:56 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-18 03:03:56 +0200 |
commit | 41745326d8440340a87b5179139b2915efe3715d (patch) | |
tree | 7ae465793cc80793efc5392b2628aebaf18819bd /c/common.h | |
parent | 0531bf802017b7792b90270b6346b3c88ffcea70 (diff) | |
download | EpisodeBrowser-41745326d8440340a87b5179139b2915efe3715d.tar.gz |
Add Unicode support to Win32Error.
Diffstat (limited to 'c/common.h')
-rw-r--r-- | c/common.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -16,9 +16,11 @@ struct Win32Error : public std::exception Win32Error(DWORD dwErr); ~Win32Error(); virtual const char* what() const noexcept override; + virtual const TCHAR* twhat() const noexcept; private: DWORD m_dwErr; - char* const m_szMsg = NULL; + char* m_szMsg = NULL; + wchar_t* m_wszMsg = NULL; }; struct Library |