mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:25:39 +00:00
- Fix conversion of messages from Unicode to Ansi and back.
svn path=/trunk/; revision=11940
This commit is contained in:
parent
20aebf67c0
commit
abd0ead395
1 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: message.c,v 1.43 2004/08/31 23:32:01 gvg Exp $
|
/* $Id: message.c,v 1.44 2004/12/05 03:50:33 navaraf Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
|
@ -594,7 +594,7 @@ MsgiUnicodeToAnsiMessage(LPMSG AnsiMsg, LPMSG UnicodeMsg)
|
||||||
}
|
}
|
||||||
CsA->lpszClass = AString.Buffer;
|
CsA->lpszClass = AString.Buffer;
|
||||||
}
|
}
|
||||||
UnicodeMsg->lParam = (LPARAM)CsA;
|
AnsiMsg->lParam = (LPARAM)CsA;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case WM_GETTEXT:
|
case WM_GETTEXT:
|
||||||
|
@ -681,13 +681,13 @@ MsgiUnicodeToAnsiReply(LPMSG AnsiMsg, LPMSG UnicodeMsg, LRESULT *Result)
|
||||||
if (0 < AnsiMsg->wParam &&
|
if (0 < AnsiMsg->wParam &&
|
||||||
! MultiByteToWideChar(CP_ACP, 0, Buffer, -1, UBuffer, UnicodeMsg->wParam))
|
! MultiByteToWideChar(CP_ACP, 0, Buffer, -1, UBuffer, UnicodeMsg->wParam))
|
||||||
{
|
{
|
||||||
UBuffer[AnsiMsg->wParam - 1] = L'\0';
|
UBuffer[UnicodeMsg->wParam - 1] = L'\0';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MsgiUnicodeToAnsiCleanup(UnicodeMsg, AnsiMsg);
|
MsgiUnicodeToAnsiCleanup(AnsiMsg, UnicodeMsg);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue