mirror of
https://github.com/holub/mame
synced 2025-04-26 10:13:37 +03:00
ah (nw)
This commit is contained in:
parent
6fcd60b271
commit
bc43490a4c
@ -117,7 +117,7 @@ int osd_uchar_from_osdchar(UINT32 *uchar, const char *osdchar, size_t count)
|
|||||||
// The multibyte char can't be bigger than the max character size
|
// The multibyte char can't be bigger than the max character size
|
||||||
count = MIN(count, cp.MaxCharSize);
|
count = MIN(count, cp.MaxCharSize);
|
||||||
|
|
||||||
if (MultiByteToWideChar(CP_ACP, 0, osdchar, static_cast<DWORD>(count), &wch, 1) != 0)
|
if (MultiByteToWideChar(CP_ACP, 0, osdchar, static_cast<DWORD>(count), &wch, 1) == 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
*uchar = wch;
|
*uchar = wch;
|
||||||
|
Loading…
Reference in New Issue
Block a user