| Index: core/fxge/win32/fx_win32_device.cpp
|
| diff --git a/core/fxge/win32/fx_win32_device.cpp b/core/fxge/win32/fx_win32_device.cpp
|
| index c7afab39a7b66443477eed97d3ad7ec0e56c818a..9b43fae09e2572c40b5b2bb007d2233ea2a72ebc 100644
|
| --- a/core/fxge/win32/fx_win32_device.cpp
|
| +++ b/core/fxge/win32/fx_win32_device.cpp
|
| @@ -411,7 +411,7 @@ FX_DWORD CFX_Win32FontInfo::GetFontData(void* hFont,
|
| uint8_t* buffer,
|
| FX_DWORD size) {
|
| HFONT hOldFont = (HFONT)::SelectObject(m_hDC, (HFONT)hFont);
|
| - table = FXDWORD_FROM_MSBFIRST(table);
|
| + table = FXDWORD_GET_MSBFIRST(reinterpret_cast<uint8_t*>(&table));
|
| size = ::GetFontData(m_hDC, table, 0, buffer, size);
|
| ::SelectObject(m_hDC, hOldFont);
|
| if (size == GDI_ERROR) {
|
|
|