X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fformatter.hpp;h=55ed28abec1501d19c909dfe0be544b983941319;hb=b9c20609ce007c6e07562df57b8a5d845061b9e4;hp=75a407f7469ee421f3cde1c9bc8b7e4a68a4772d;hpb=ee0fdfe385b70d95b3c3d590468fa6e329bf2cc7;p=apitrace diff --git a/common/formatter.hpp b/common/formatter.hpp index 75a407f..55ed28a 100644 --- a/common/formatter.hpp +++ b/common/formatter.hpp @@ -153,9 +153,9 @@ public: WindowsAttribute(WORD _wAttributes) : wAttributes(_wAttributes) {} void apply(std::ostream& os) const { DWORD nStdHandleOutput; - if (os == std::cout) { + if (&os == &std::cout) { nStdHandleOutput = STD_OUTPUT_HANDLE; - } else if (os == std::cerr) { + } else if (&os == &std::cerr) { nStdHandleOutput = STD_ERROR_HANDLE; } else { return;