Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b7b9db00
Commit
b7b9db00
authored
May 17, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
May 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Remove some checks for defines argument in D3DXCreateEffect* functions.
parent
068593b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
effect.c
dlls/d3dx9_36/effect.c
+6
-6
No files found.
dlls/d3dx9_36/effect.c
View file @
b7b9db00
...
...
@@ -4554,7 +4554,7 @@ HRESULT WINAPI D3DXCreateEffectFromFileExW(LPDIRECT3DDEVICE9 device, LPCWSTR src
TRACE
(
"(%s): relay
\n
"
,
debugstr_w
(
srcfile
));
if
(
!
device
||
!
srcfile
||
!
defines
)
if
(
!
device
||
!
srcfile
)
return
D3DERR_INVALIDCALL
;
ret
=
map_view_of_file
(
srcfile
,
&
buffer
,
&
size
);
...
...
@@ -4578,7 +4578,7 @@ HRESULT WINAPI D3DXCreateEffectFromFileExA(LPDIRECT3DDEVICE9 device, LPCSTR srcf
TRACE
(
"(void): relay
\n
"
);
if
(
!
srcfile
||
!
defines
)
if
(
!
srcfile
)
return
D3DERR_INVALIDCALL
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
srcfile
,
-
1
,
NULL
,
0
);
...
...
@@ -4615,7 +4615,7 @@ HRESULT WINAPI D3DXCreateEffectFromResourceExW(LPDIRECT3DDEVICE9 device, HMODULE
TRACE
(
"(%p, %s): relay
\n
"
,
srcmodule
,
debugstr_w
(
srcresource
));
if
(
!
device
||
!
defines
)
if
(
!
device
)
return
D3DERR_INVALIDCALL
;
resinfo
=
FindResourceW
(
srcmodule
,
srcresource
,
(
LPCWSTR
)
RT_RCDATA
);
...
...
@@ -4645,7 +4645,7 @@ HRESULT WINAPI D3DXCreateEffectFromResourceExA(LPDIRECT3DDEVICE9 device, HMODULE
TRACE
(
"(%p, %s): relay
\n
"
,
srcmodule
,
debugstr_a
(
srcresource
));
if
(
!
device
||
!
defines
)
if
(
!
device
)
return
D3DERR_INVALIDCALL
;
resinfo
=
FindResourceA
(
srcmodule
,
srcresource
,
(
LPCSTR
)
RT_RCDATA
);
...
...
@@ -4692,7 +4692,7 @@ HRESULT WINAPI D3DXCreateEffectCompilerFromFileW(LPCWSTR srcfile, const D3DXMACR
TRACE
(
"(%s): relay
\n
"
,
debugstr_w
(
srcfile
));
if
(
!
srcfile
||
!
defines
)
if
(
!
srcfile
)
return
D3DERR_INVALIDCALL
;
ret
=
map_view_of_file
(
srcfile
,
&
buffer
,
&
size
);
...
...
@@ -4715,7 +4715,7 @@ HRESULT WINAPI D3DXCreateEffectCompilerFromFileA(LPCSTR srcfile, const D3DXMACRO
TRACE
(
"(void): relay
\n
"
);
if
(
!
srcfile
||
!
defines
)
if
(
!
srcfile
)
return
D3DERR_INVALIDCALL
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
srcfile
,
-
1
,
NULL
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment