diff options
author | Neil <nyamatongwe@gmail.com> | 2019-05-29 09:14:44 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-05-29 09:14:44 +1000 |
commit | d95f9b511b3c1b21da85f809fb6b21431f3d03dc (patch) | |
tree | 1b55e0546c99d762fd36482c9cebdbff09728c8f | |
parent | 929bc6ea4a5a696ac46bba0a904e4a81e2668075 (diff) | |
download | scintilla-mirror-d95f9b511b3c1b21da85f809fb6b21431f3d03dc.tar.gz |
Bug [#2104]. Use 'l' long format length sub-specifier for HRESULT as it is long.
-rw-r--r-- | win32/PlatWin.cxx | 2 | ||||
-rw-r--r-- | win32/ScintillaWin.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 28587b917..27e8293c9 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1487,7 +1487,7 @@ void SurfaceD2D::Copy(PRectangle rc, Point from, Surface &surfaceSource) { D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR, rcSource); hr = pRenderTarget->Flush(); if (FAILED(hr)) { - Platform::DebugPrintf("Failed Flush 0x%x\n", hr); + Platform::DebugPrintf("Failed Flush 0x%lx\n", hr); } pBitmap->Release(); } diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index c15986572..a11ac94a1 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -570,7 +570,7 @@ void ScintillaWin::EnsureRenderTarget(HDC hdc) { if (SUCCEEDED(hr)) { pRenderTarget = pDCRT; } else { - Platform::DebugPrintf("Failed CreateDCRenderTarget 0x%x\n", hr); + Platform::DebugPrintf("Failed CreateDCRenderTarget 0x%lx\n", hr); pRenderTarget = nullptr; } @@ -586,7 +586,7 @@ void ScintillaWin::EnsureRenderTarget(HDC hdc) { if (SUCCEEDED(hr)) { pRenderTarget = pHwndRenderTarget; } else { - Platform::DebugPrintf("Failed CreateHwndRenderTarget 0x%x\n", hr); + Platform::DebugPrintf("Failed CreateHwndRenderTarget 0x%lx\n", hr); pRenderTarget = nullptr; } } @@ -609,7 +609,7 @@ void ScintillaWin::EnsureRenderTarget(HDC hdc) { GetClientRect(MainHWND(), &rcWindow); const HRESULT hr = static_cast<ID2D1DCRenderTarget*>(pRenderTarget)->BindDC(hdc, &rcWindow); if (FAILED(hr)) { - Platform::DebugPrintf("BindDC failed 0x%x\n", hr); + Platform::DebugPrintf("BindDC failed 0x%lx\n", hr); DropRenderTarget(); } } |