From 378921dae585d088c0372f47e28c8f243f94e15e Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 29 May 2019 09:14:44 +1000 Subject: Backport: Bug [#2104]. Use 'l' long format length sub-specifier for HRESULT as it is long. Backport of changeset 7539:b22c2d7b0301. --- win32/PlatWin.cxx | 2 +- win32/ScintillaWin.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 523354533..e70b8c365 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1470,7 +1470,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 b85b4c80d..265cb2369 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -571,7 +571,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; } @@ -587,7 +587,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; } } @@ -610,7 +610,7 @@ void ScintillaWin::EnsureRenderTarget(HDC hdc) { GetClientRect(MainHWND(), &rcWindow); const HRESULT hr = static_cast(pRenderTarget)->BindDC(hdc, &rcWindow); if (FAILED(hr)) { - Platform::DebugPrintf("BindDC failed 0x%x\n", hr); + Platform::DebugPrintf("BindDC failed 0x%lx\n", hr); DropRenderTarget(); } } -- cgit v1.2.3