aboutsummaryrefslogtreecommitdiff
path: root/c/common.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-18 03:03:56 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-18 03:03:56 +0200
commit41745326d8440340a87b5179139b2915efe3715d (patch)
tree7ae465793cc80793efc5392b2628aebaf18819bd /c/common.h
parent0531bf802017b7792b90270b6346b3c88ffcea70 (diff)
downloadEpisodeBrowser-41745326d8440340a87b5179139b2915efe3715d.tar.gz
Add Unicode support to Win32Error.
Diffstat (limited to 'c/common.h')
-rw-r--r--c/common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/c/common.h b/c/common.h
index 515c75c..2b3c331 100644
--- a/c/common.h
+++ b/c/common.h
@@ -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