mirror of
https://github.com/LIV2/WinUAE.git
synced 2025-12-06 00:12:52 +00:00
Named Pipe unicode length calculation fix.
This commit is contained in:
parent
5e46b22c74
commit
b0a4749812
@ -344,7 +344,7 @@ int checkIPC (void *vipc, struct uae_prefs *p)
|
||||
if (_tcslen (out) >= IPC_BUFFER_SIZE)
|
||||
out[IPC_BUFFER_SIZE - 1] = 0;
|
||||
_tcscpy ((TCHAR*)ipc->outbuf, out);
|
||||
outlen = _tcsclen ((TCHAR*)ipc->outbuf) + sizeof (TCHAR);
|
||||
outlen = (_tcsclen ((TCHAR*)ipc->outbuf) + 1) * sizeof (TCHAR);
|
||||
} else {
|
||||
ua_copy ((uae_char*)ipc->outbuf, sizeof ipc->outbuf, out);
|
||||
outlen = strlen ((char*)ipc->outbuf) + sizeof (char);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user