comctl32/animate: Use wide string literals.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e9e8b77d2d
commit
202c717613
|
@ -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 BOOL ANIMATE_LoadResW(ANIMATE_INFO *infoPtr, HINSTANCE hInst, LPCWSTR lpName)
|
||||||
{
|
{
|
||||||
static const WCHAR aviW[] = { 'A', 'V', 'I', 0 };
|
|
||||||
HRSRC hrsrc;
|
HRSRC hrsrc;
|
||||||
MMIOINFO mminfo;
|
MMIOINFO mminfo;
|
||||||
LPVOID lpAvi;
|
LPVOID lpAvi;
|
||||||
|
|
||||||
hrsrc = FindResourceW(hInst, lpName, aviW);
|
hrsrc = FindResourceW(hInst, lpName, L"AVI");
|
||||||
if (!hrsrc)
|
if (!hrsrc)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
@ -794,12 +793,11 @@ static BOOL ANIMATE_Stop(ANIMATE_INFO *infoPtr)
|
||||||
|
|
||||||
static BOOL ANIMATE_Create(HWND hWnd, const CREATESTRUCTW *lpcs)
|
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;
|
ANIMATE_INFO *infoPtr;
|
||||||
|
|
||||||
if (!fnIC.hModule)
|
if (!fnIC.hModule)
|
||||||
{
|
{
|
||||||
fnIC.hModule = LoadLibraryW(msvfw32W);
|
fnIC.hModule = LoadLibraryW(L"msvfw32.dll");
|
||||||
if (!fnIC.hModule) return FALSE;
|
if (!fnIC.hModule) return FALSE;
|
||||||
|
|
||||||
fnIC.fnICOpen = (void*)GetProcAddress(fnIC.hModule, "ICOpen");
|
fnIC.fnICOpen = (void*)GetProcAddress(fnIC.hModule, "ICOpen");
|
||||||
|
|
Loading…
Reference in New Issue