mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 11:53:32 +00:00
[WINESYNC] d3dx9: WARN when the file doesn't exist in D3DXCreateTextureFromFileExW().
Signed-off-by: Matteo Bruni <[email protected]> Signed-off-by: Alexandre Julliard <[email protected]> wine commit id 81ababa864229a7e81abca76ef7e6a12fe5b256f by Matteo Bruni <[email protected]>
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user