mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:31:39 +00:00
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:
parent
8ed990164c
commit
d3f5b69bdc
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue