[PATCH 6/6] Fix sizeof() usage (Coverity)

Nikolay Sivov nsivov at codeweavers.com
Fri Feb 25 03:22:54 CST 2011


---
 dlls/oleaut32/olepropframe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/oleaut32/olepropframe.c b/dlls/oleaut32/olepropframe.c
index 011fde1..61655f9 100644
--- a/dlls/oleaut32/olepropframe.c
+++ b/dlls/oleaut32/olepropframe.c
@@ -221,7 +221,7 @@ HRESULT WINAPI OleCreatePropertyFrameIndirect(LPOCPFIPARAMS lpParams)
                 GetDeviceCaps(hdc, LOGPIXELSY), 72);
         font_desc.lfCharSet = DEFAULT_CHARSET;
         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);
 
         if(hfont) {
-- 
1.5.6.5


--------------010807000403000607050108--



More information about the wine-patches mailing list