Commit f417dc1e authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

localui: Avoid sizeof on structs with a varlength array.

parent 9e2d5cae
......@@ -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,
......
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