Commit f801abef authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

oleaut32: Fix sizeof() usage (Coverity).

parent 653b3104
...@@ -221,7 +221,7 @@ HRESULT WINAPI OleCreatePropertyFrameIndirect(LPOCPFIPARAMS lpParams) ...@@ -221,7 +221,7 @@ HRESULT WINAPI OleCreatePropertyFrameIndirect(LPOCPFIPARAMS lpParams)
GetDeviceCaps(hdc, LOGPIXELSY), 72); GetDeviceCaps(hdc, LOGPIXELSY), 72);
font_desc.lfCharSet = DEFAULT_CHARSET; font_desc.lfCharSet = DEFAULT_CHARSET;
memcpy(font_desc.lfFaceName, property_sheet_dialog_data+1, memcpy(font_desc.lfFaceName, property_sheet_dialog_data+1,
sizeof(WCHAR*)*(lstrlenW(property_sheet_dialog_data+1)+1)); sizeof(WCHAR)*(lstrlenW(property_sheet_dialog_data+1)+1));
hfont = CreateFontIndirectW(&font_desc); hfont = CreateFontIndirectW(&font_desc);
if(hfont) { if(hfont) {
......
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