mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 12:14:32 +00:00
[WINESYNC] d3dx9: WARN when the file doesn't exist in D3DXCreateTextureFromFileExW().
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id 81ababa864229a7e81abca76ef7e6a12fe5b256f by Matteo Bruni <mbruni@codeweavers.com>
This commit is contained in:
parent
4198c58dca
commit
f2c536f5cc
2 changed files with 4 additions and 1 deletions
|
@ -777,7 +777,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);
|
||||
|
|
|
@ -15,4 +15,4 @@ files: {include/d3dx9.h: sdk/include/dxsdk/d3dx9.h, include/d3dx9anim.h: sdk/inc
|
|||
include/d3dx9mesh.h: sdk/include/dxsdk/d3dx9mesh.h, include/d3dx9of.h: sdk/include/dxsdk/d3dx9of.h,
|
||||
include/d3dx9shader.h: sdk/include/dxsdk/d3dx9shader.h, include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h,
|
||||
include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h, include/d3dx9xof.h: sdk/include/dxsdk/d3dx9xof.h}
|
||||
tags: {wine: f934ef1a14108aa535e76900b29cba0dd8253f80}
|
||||
tags: {wine: 81ababa864229a7e81abca76ef7e6a12fe5b256f}
|
||||
|
|
Loading…
Reference in a new issue