summaryrefslogtreecommitdiffstats
path: root/osdep/windows_utils.h
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2016-02-17 02:40:43 -0800
committerKevin Mitchell <kevmitch@gmail.com>2016-02-17 06:58:56 -0800
commit50d9a2609ae283910d78c05d028ef378dc3d6617 (patch)
tree92cc2cc16936d254abc7c52fbd5af21eb5c7551b /osdep/windows_utils.h
parentf371367aac54402cca4627c0d1660eed05695ba0 (diff)
downloadmpv-50d9a2609ae283910d78c05d028ef378dc3d6617.tar.bz2
mpv-50d9a2609ae283910d78c05d028ef378dc3d6617.tar.xz
windows_utils: try and use FormatMessage for errors.
This is useful in particular for GetLastError, unfortunately, it's stil pretty dumb with regards to WASAPI or D3D specific errors, so keep the hresult_to_string switch.
Diffstat (limited to 'osdep/windows_utils.h')
-rw-r--r--osdep/windows_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/windows_utils.h b/osdep/windows_utils.h
index 851eb1b4e3..6c750ded2a 100644
--- a/osdep/windows_utils.h
+++ b/osdep/windows_utils.h
@@ -23,7 +23,7 @@
char *mp_GUID_to_str_buf(char *buf, size_t buf_size, const GUID *guid);
#define mp_GUID_to_str(guid) mp_GUID_to_str_buf((char[40]){0}, 40, (guid))
char *mp_HRESULT_to_str_buf(char *buf, size_t buf_size, HRESULT hr);
-#define mp_HRESULT_to_str(hr) mp_HRESULT_to_str_buf((char[60]){0}, 60, (hr))
+#define mp_HRESULT_to_str(hr) mp_HRESULT_to_str_buf((char[256]){0}, 256, (hr))
#define mp_LastError_to_str() mp_HRESULT_to_str(HRESULT_FROM_WIN32(GetLastError()))
#endif