Michael Stefaniuc : riched20: IDC_IBEAM is already an int resource ( PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 18 09:57:18 CST 2015


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Feb 18 00:06:55 2015 +0100

riched20: IDC_IBEAM is already an int resource (PVS-Studio).

---

 dlls/riched20/editor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index ca316d2..7632d47 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -4818,7 +4818,7 @@ static BOOL ME_RegisterEditorClass(HINSTANCE hInstance)
   wcW.cbWndExtra = sizeof(ME_TextEditor *);
   wcW.hInstance = NULL; /* hInstance would register DLL-local class */
   wcW.hIcon = NULL;
-  wcW.hCursor = LoadCursorW(NULL, MAKEINTRESOURCEW(IDC_IBEAM));
+  wcW.hCursor = LoadCursorW(NULL, (LPWSTR)IDC_IBEAM);
   wcW.hbrBackground = GetStockObject(NULL_BRUSH);
   wcW.lpszMenuName = NULL;
 
@@ -4844,7 +4844,7 @@ static BOOL ME_RegisterEditorClass(HINSTANCE hInstance)
   wcA.cbWndExtra = sizeof(ME_TextEditor *);
   wcA.hInstance = NULL; /* hInstance would register DLL-local class */
   wcA.hIcon = NULL;
-  wcA.hCursor = LoadCursorW(NULL, MAKEINTRESOURCEW(IDC_IBEAM));
+  wcA.hCursor = LoadCursorW(NULL, (LPWSTR)IDC_IBEAM);
   wcA.hbrBackground = GetStockObject(NULL_BRUSH);
   wcA.lpszMenuName = NULL;
   wcA.lpszClassName = RICHEDIT_CLASS20A;




More information about the wine-cvs mailing list