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"); }