Commit 81ababa8 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dx9: WARN when the file doesn't exist in D3DXCreateTextureFromFileExW().

parent ceabad19
......@@ -773,7 +773,10 @@ HRESULT WINAPI D3DXCreateTextureFromFileExW(struct IDirect3DDevice9 *device, con
hr = map_view_of_file(srcfile, &buffer, &size);
if (FAILED(hr))
{
WARN("Failed to open file.\n");
return D3DXERR_INVALIDDATA;
}
hr = D3DXCreateTextureFromFileInMemoryEx(device, buffer, size, width, height, miplevels, usage, format, pool,
filter, mipfilter, colorkey, srcinfo, palette, texture);
......
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