From f8f8e7e76e9e4946fec645fa71c39cb114313701 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 10 Oct 2023 16:50:20 +0200 Subject: [PATCH] Cleanup Signed-off-by: Simon Rozman --- include/WinStd/Common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/WinStd/Common.h b/include/WinStd/Common.h index 238a08c1..26efb353 100644 --- a/include/WinStd/Common.h +++ b/include/WinStd/Common.h @@ -786,7 +786,7 @@ namespace winstd /// globalmem_accessor(_In_ HGLOBAL hMem) : m_h(hMem) { - m_data = (T*)GlobalLock(hMem); + m_data = reinterpret_cast(GlobalLock(hMem)); if (!m_data) throw win_runtime_error("GlobalLock failed"); }