d3dx10: Try loading the resource as bitmap in D3DX10CreateAsyncResourceLoader.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2022-05-26 18:34:15 +02:00 committed by Alexandre Julliard
parent 8ed990164c
commit d3f5b69bdc

View file

@ -345,6 +345,8 @@ HRESULT WINAPI D3DX10CreateAsyncResourceLoaderA(HMODULE module, const char *reso
return E_OUTOFMEMORY;
if (!(rsrc = FindResourceA(module, resource, (const char *)RT_RCDATA)))
rsrc = FindResourceA(module, resource, (const char *)RT_BITMAP);
if (!rsrc)
{
WARN("Failed to find resource.\n");
HeapFree(GetProcessHeap(), 0, object);
@ -377,6 +379,8 @@ HRESULT WINAPI D3DX10CreateAsyncResourceLoaderW(HMODULE module, const WCHAR *res
return E_OUTOFMEMORY;
if (!(rsrc = FindResourceW(module, resource, (const WCHAR *)RT_RCDATA)))
rsrc = FindResourceW(module, resource, (const WCHAR *)RT_BITMAP);
if (!rsrc)
{
WARN("Failed to find resource.\n");
HeapFree(GetProcessHeap(), 0, object);