Nikolay Sivov : oleaut32: Fix sizeof() usage (Coverity).

Alexandre Julliard julliard at winehq.org
Fri Feb 25 11:19:46 CST 2011


Module: wine
Branch: master
Commit: f801abef485f82c47c36ae27b35c4b2d28659db9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f801abef485f82c47c36ae27b35c4b2d28659db9

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Feb 25 12:22:54 2011 +0300

oleaut32: Fix sizeof() usage (Coverity).

---

 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) {




More information about the wine-cvs mailing list