Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2023-10-10 16:50:20 +02:00
parent e0fc1ae56a
commit f8f8e7e76e

View File

@ -786,7 +786,7 @@ namespace winstd
///
globalmem_accessor(_In_ HGLOBAL hMem) : m_h(hMem)
{
m_data = (T*)GlobalLock(hMem);
m_data = reinterpret_cast<T*>(GlobalLock(hMem));
if (!m_data)
throw win_runtime_error("GlobalLock failed");
}