Nikolay Sivov : comctl32/animate: Use wide string literals.

Alexandre Julliard julliard at winehq.org
Fri May 1 16:17:51 CDT 2020


Module: wine
Branch: master
Commit: 202c71761314f29d125efee8d496c45ef08f9a37
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=202c71761314f29d125efee8d496c45ef08f9a37

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri May  1 18:42:00 2020 +0300

comctl32/animate: Use wide string literals.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/comctl32/animate.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/comctl32/animate.c b/dlls/comctl32/animate.c
index f8ba159779..f7ac28ae4c 100644
--- a/dlls/comctl32/animate.c
+++ b/dlls/comctl32/animate.c
@@ -94,12 +94,11 @@ static void ANIMATE_Notify(const ANIMATE_INFO *infoPtr, UINT notif)
 
 static BOOL ANIMATE_LoadResW(ANIMATE_INFO *infoPtr, HINSTANCE hInst, LPCWSTR lpName)
 {
-    static const WCHAR aviW[] = { 'A', 'V', 'I', 0 };
     HRSRC 	hrsrc;
     MMIOINFO	mminfo;
     LPVOID	lpAvi;
 
-    hrsrc = FindResourceW(hInst, lpName, aviW);
+    hrsrc = FindResourceW(hInst, lpName, L"AVI");
     if (!hrsrc)
 	return FALSE;
 
@@ -794,12 +793,11 @@ static BOOL ANIMATE_Stop(ANIMATE_INFO *infoPtr)
 
 static BOOL ANIMATE_Create(HWND hWnd, const CREATESTRUCTW *lpcs)
 {
-    static const WCHAR msvfw32W[] = { 'm', 's', 'v', 'f', 'w', '3', '2', '.', 'd', 'l', 'l', 0 };
     ANIMATE_INFO *infoPtr;
 
     if (!fnIC.hModule)
     {
-	fnIC.hModule = LoadLibraryW(msvfw32W);
+	fnIC.hModule = LoadLibraryW(L"msvfw32.dll");
 	if (!fnIC.hModule) return FALSE;
 
 	fnIC.fnICOpen        = (void*)GetProcAddress(fnIC.hModule, "ICOpen");




More information about the wine-cvs mailing list