localui: Avoid sizeof on structs with a varlength array.

This commit is contained in:
Michael Stefaniuc 2012-12-11 13:35:40 +01:00 committed by Alexandre Julliard
parent 9e2d5cae73
commit f417dc1efb
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ static BOOL dlg_configure_com(HANDLE hXcv, HWND hWnd, PCWSTR pPortName)
shortname[len-1] = '\0';
/* get current settings */
len = sizeof(cfg);
len = FIELD_OFFSET(COMMCONFIG, wcProviderData[1]);
status = ERROR_SUCCESS;
res = XcvDataW( hXcv, cmd_GetDefaultCommConfigW,
(PBYTE) shortname,