user32: Fix ASCII / ANSI mixups in comments.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2021-08-31 15:04:56 +02:00 committed by Alexandre Julliard
parent 29f73481df
commit e2b0fb9857
5 changed files with 7 additions and 7 deletions

View File

@ -235,7 +235,7 @@ static BOOL set_server_info( HWND hwnd, INT offset, LONG_PTR newval, UINT size )
/***********************************************************************
* CLASS_GetMenuNameA
*
* Get the menu name as a ASCII string.
* Get the menu name as an ANSI string.
*/
static inline LPSTR CLASS_GetMenuNameA( CLASS *classPtr )
{
@ -524,7 +524,7 @@ static CLASS *CLASS_RegisterClass( LPCWSTR name, UINT basename_offset, HINSTANCE
* register_builtin
*
* Register a builtin control class.
* This allows having both ASCII and Unicode winprocs for the same class.
* This allows having both ANSI and Unicode winprocs for the same class.
*/
static void register_builtin( const struct builtin_class_descr *descr )
{

View File

@ -782,7 +782,7 @@ static HDDEDATA map_A_to_W( DWORD instance, void *ptr, DWORD size )
return ret;
}
/* convert data to ASCII, unless it looks like it's not in Unicode format */
/* convert data to ANSI, unless it looks like it's not in Unicode format */
static HDDEDATA map_W_to_A( DWORD instance, void *ptr, DWORD size )
{
HDDEDATA ret;
@ -821,7 +821,7 @@ static WDML_QUEUE_STATE WDML_ServerHandleExecute(WDML_CONV* pConv, WDML_XACT* pX
{
if (pConv->instance->unicode) /* Unicode server, try to map A->W */
hDdeData = map_A_to_W( pConv->instance->instanceID, ptr, size );
else if (!IsWindowUnicode( pConv->hwndClient )) /* ASCII server and client, try to map W->A */
else if (!IsWindowUnicode( pConv->hwndClient )) /* ANSI server and client, try to map W->A */
hDdeData = map_W_to_A( pConv->instance->instanceID, ptr, size );
else
hDdeData = DdeCreateDataHandle(pConv->instance->instanceID, ptr, size, 0, 0, CF_TEXT, 0);

View File

@ -4879,7 +4879,7 @@ BOOL WINAPI GetMenuItemInfoW( HMENU hmenu, UINT item, BOOL bypos,
}
/* set a menu item text from a ASCII or Unicode string */
/* set a menu item text from an ANSI or Unicode string */
static inline void set_menu_item_text( MENUITEM *menu, LPCWSTR text, BOOL unicode )
{
if (!text)

View File

@ -1185,7 +1185,7 @@ INT WINAPI DrawTextA( HDC hdc, LPCSTR str, INT count, LPRECT rect, UINT flags )
* GrayString functions
*/
/* callback for ASCII gray string proc */
/* callback for ANSI gray string proc */
static BOOL CALLBACK gray_string_callbackA( HDC hdc, LPARAM param, INT len )
{
return TextOutA( hdc, 0, 0, (LPCSTR)param, len );

View File

@ -39,7 +39,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(win);
typedef struct tagWINDOWPROC
{
WNDPROC procA; /* ASCII window proc */
WNDPROC procA; /* ANSI window proc */
WNDPROC procW; /* Unicode window proc */
} WINDOWPROC;