Commit 538263d0 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

user.exe16: Don't open code CONTAINING_RECORD.

parent 59a7777f
...@@ -87,10 +87,7 @@ static BOOL CALLBACK gray_string_callback( HDC hdc, LPARAM param, INT len ) ...@@ -87,10 +87,7 @@ static BOOL CALLBACK gray_string_callback( HDC hdc, LPARAM param, INT len )
/* callback for 16-bit gray string proc with string pointer */ /* callback for 16-bit gray string proc with string pointer */
static BOOL CALLBACK gray_string_callback_ptr( HDC hdc, LPARAM param, INT len ) static BOOL CALLBACK gray_string_callback_ptr( HDC hdc, LPARAM param, INT len )
{ {
const struct gray_string_info *info; const struct gray_string_info *info = CONTAINING_RECORD( (void *)param, struct gray_string_info, str );
char *str = (char *)param;
info = (struct gray_string_info *)(str - offsetof( struct gray_string_info, str ));
return gray_string_callback( hdc, (LPARAM)info, len ); return gray_string_callback( hdc, (LPARAM)info, len );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment