diff options
author | José Fonseca <jfonseca@vmware.com> | 2015-02-09 12:15:19 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2015-02-09 12:15:19 +0000 |
commit | 02cf0860a58a6ab174be1abf54fbfe9c33c0bf42 (patch) | |
tree | 7c072a05da7f1426f4cab31ea9be2a4e0727546d /thirdparty/dxerr | |
parent | 3b74a951b71baaba26c930b90babf3ae867e6328 (diff) |
dxerr: Remove source code annotations.
Diffstat (limited to 'thirdparty/dxerr')
-rw-r--r-- | thirdparty/dxerr/dxerr.cpp | 8 | ||||
-rw-r--r-- | thirdparty/dxerr/dxerr.h | 11 |
2 files changed, 9 insertions, 10 deletions
diff --git a/thirdparty/dxerr/dxerr.cpp b/thirdparty/dxerr/dxerr.cpp index 6f8ec98e..3413c3ab 100644 --- a/thirdparty/dxerr/dxerr.cpp +++ b/thirdparty/dxerr/dxerr.cpp @@ -81,7 +81,7 @@ return L##strOut; //----------------------------------------------------- -const WCHAR* WINAPI DXGetErrorStringW( _In_ HRESULT hr ) +const WCHAR* WINAPI DXGetErrorStringW( HRESULT hr ) { switch(hr) { @@ -3457,7 +3457,7 @@ const WCHAR* WINAPI DXGetErrorStringW( _In_ HRESULT hr ) //-------------------------------------------------------------------------------------- -void WINAPI DXGetErrorDescriptionW( _In_ HRESULT hr, _Out_cap_(count) WCHAR* desc, _In_ size_t count ) +void WINAPI DXGetErrorDescriptionW( HRESULT hr, WCHAR* desc, size_t count ) { if ( !count ) return; @@ -3908,8 +3908,8 @@ void WINAPI DXGetErrorDescriptionW( _In_ HRESULT hr, _Out_cap_(count) WCHAR* des } //----------------------------------------------------------------------------- -HRESULT WINAPI DXTraceW( _In_z_ const WCHAR* strFile, _In_ DWORD dwLine, _In_ HRESULT hr, - _In_opt_ const WCHAR* strMsg, _In_ bool bPopMsgBox ) +HRESULT WINAPI DXTraceW( const WCHAR* strFile, DWORD dwLine, HRESULT hr, + const WCHAR* strMsg, bool bPopMsgBox ) { WCHAR strBufferLine[128]; WCHAR strBufferError[256]; diff --git a/thirdparty/dxerr/dxerr.h b/thirdparty/dxerr/dxerr.h index 52e674c8..092cc3a7 100644 --- a/thirdparty/dxerr/dxerr.h +++ b/thirdparty/dxerr/dxerr.h @@ -20,7 +20,6 @@ #endif #include <windows.h> -#include <sal.h> #ifdef __cplusplus extern "C" { @@ -29,7 +28,7 @@ extern "C" { //-------------------------------------------------------------------------------------- // DXGetErrorString //-------------------------------------------------------------------------------------- -const WCHAR* WINAPI DXGetErrorStringW( _In_ HRESULT hr ); +const WCHAR* WINAPI DXGetErrorStringW( HRESULT hr ); #define DXGetErrorString DXGetErrorStringW @@ -37,7 +36,7 @@ const WCHAR* WINAPI DXGetErrorStringW( _In_ HRESULT hr ); // DXGetErrorDescription has to be modified to return a copy in a buffer rather than // the original static string. //-------------------------------------------------------------------------------------- -void WINAPI DXGetErrorDescriptionW( _In_ HRESULT hr, _Out_cap_(count) WCHAR* desc, _In_ size_t count ); +void WINAPI DXGetErrorDescriptionW( HRESULT hr, WCHAR* desc, size_t count ); #define DXGetErrorDescription DXGetErrorDescriptionW @@ -47,16 +46,16 @@ void WINAPI DXGetErrorDescriptionW( _In_ HRESULT hr, _Out_cap_(count) WCHAR* des // Desc: Outputs a formatted error message to the debug stream // // Args: WCHAR* strFile The current file, typically passed in using the -// __FILEW__ macro. +// macro. // DWORD dwLine The current line number, typically passed in using the -// __LINE__ macro. +// macro. // HRESULT hr An HRESULT that will be traced to the debug stream. // CHAR* strMsg A string that will be traced to the debug stream (may be NULL) // BOOL bPopMsgBox If TRUE, then a message box will popup also containing the passed info. // // Return: The hr that was passed in. //-------------------------------------------------------------------------------------- -HRESULT WINAPI DXTraceW( _In_z_ const WCHAR* strFile, _In_ DWORD dwLine, _In_ HRESULT hr, _In_opt_ const WCHAR* strMsg, _In_ bool bPopMsgBox ); +HRESULT WINAPI DXTraceW( const WCHAR* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, bool bPopMsgBox ); #define DXTrace DXTraceW |