Commit 6d801377 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dx10: Turn some ERR() into WARN().

parent aee9fa0e
...@@ -115,7 +115,7 @@ static HRESULT WINAPI filedataloader_Load(ID3DX10DataLoader *iface) ...@@ -115,7 +115,7 @@ static HRESULT WINAPI filedataloader_Load(ID3DX10DataLoader *iface)
CloseHandle(file); CloseHandle(file);
if (!ret) if (!ret)
{ {
ERR("Failed to read file contents.\n"); WARN("Failed to read file contents.\n");
HeapFree(GetProcessHeap(), 0, data); HeapFree(GetProcessHeap(), 0, data);
return E_FAIL; return E_FAIL;
} }
...@@ -175,7 +175,7 @@ static HRESULT WINAPI resourcedataloader_Load(ID3DX10DataLoader *iface) ...@@ -175,7 +175,7 @@ static HRESULT WINAPI resourcedataloader_Load(ID3DX10DataLoader *iface)
hglobal = LoadResource(loader->u.resource.module, loader->u.resource.rsrc); hglobal = LoadResource(loader->u.resource.module, loader->u.resource.rsrc);
if (!hglobal) if (!hglobal)
{ {
ERR("Failed to load resource.\n"); WARN("Failed to load resource.\n");
return E_FAIL; return E_FAIL;
} }
...@@ -349,7 +349,7 @@ HRESULT WINAPI D3DX10CreateAsyncResourceLoaderA(HMODULE module, const char *reso ...@@ -349,7 +349,7 @@ HRESULT WINAPI D3DX10CreateAsyncResourceLoaderA(HMODULE module, const char *reso
if (!(rsrc = FindResourceA(module, resource, (const char *)RT_RCDATA))) if (!(rsrc = FindResourceA(module, resource, (const char *)RT_RCDATA)))
{ {
ERR("Failed to find resource.\n"); WARN("Failed to find resource.\n");
HeapFree(GetProcessHeap(), 0, object); HeapFree(GetProcessHeap(), 0, object);
return D3DX10_ERR_INVALID_DATA; return D3DX10_ERR_INVALID_DATA;
} }
...@@ -381,7 +381,7 @@ HRESULT WINAPI D3DX10CreateAsyncResourceLoaderW(HMODULE module, const WCHAR *res ...@@ -381,7 +381,7 @@ HRESULT WINAPI D3DX10CreateAsyncResourceLoaderW(HMODULE module, const WCHAR *res
if (!(rsrc = FindResourceW(module, resource, (const WCHAR *)RT_RCDATA))) if (!(rsrc = FindResourceW(module, resource, (const WCHAR *)RT_RCDATA)))
{ {
ERR("Failed to find resource.\n"); WARN("Failed to find resource.\n");
HeapFree(GetProcessHeap(), 0, object); HeapFree(GetProcessHeap(), 0, object);
return D3DX10_ERR_INVALID_DATA; return D3DX10_ERR_INVALID_DATA;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment