Fixed code analysis warning C28251.

This commit is contained in:
Tommy Nguyen 2015-07-04 20:13:18 +02:00
parent d2642325ae
commit 725d83e37d
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@
#endif // Platform #endif // Platform
#ifdef CATCH_PLATFORM_WINDOWS #ifdef CATCH_PLATFORM_WINDOWS
extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA( const char* ); extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA( _In_opt_ const char* );
namespace Catch { namespace Catch {
void writeToDebugConsole( std::string const& text ) { void writeToDebugConsole( std::string const& text ) {
::OutputDebugStringA( text.c_str() ); ::OutputDebugStringA( text.c_str() );