Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
13e3219c
Commit
13e3219c
authored
Oct 03, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Get rid of the Header typedef.
parent
cc3cde51
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
d3drm.c
dlls/d3drm/d3drm.c
+5
-5
d3drm_private.h
dlls/d3drm/d3drm_private.h
+3
-2
meshbuilder.c
dlls/d3drm/meshbuilder.c
+5
-4
No files found.
dlls/d3drm/d3drm.c
View file @
13e3219c
...
...
@@ -1326,7 +1326,7 @@ static HRESULT WINAPI IDirect3DRM3Impl_Load(IDirect3DRM3 *iface, void *source, v
HRESULT
hr
;
const
GUID
*
pGuid
;
DWORD
size
;
Header
*
pH
eader
;
struct
d3drm_file_header
*
h
eader
;
HRESULT
ret
=
D3DRMERR_BADOBJECT
;
DWORD
i
;
...
...
@@ -1382,14 +1382,14 @@ static HRESULT WINAPI IDirect3DRM3Impl_Load(IDirect3DRM3 *iface, void *source, v
goto
end
;
}
hr
=
IDirectXFileData_GetData
(
data
,
NULL
,
&
size
,
(
void
**
)
&
pH
eader
);
if
((
hr
!=
DXFILE_OK
)
||
(
size
!=
sizeof
(
H
eader
)))
hr
=
IDirectXFileData_GetData
(
data
,
NULL
,
&
size
,
(
void
**
)
&
h
eader
);
if
((
hr
!=
DXFILE_OK
)
||
(
size
!=
sizeof
(
*
h
eader
)))
goto
end
;
TRACE
(
"Version is %
d %d %d
\n
"
,
pHeader
->
major
,
pHeader
->
minor
,
pH
eader
->
flags
);
TRACE
(
"Version is %
u.%u, flags %#x.
\n
"
,
header
->
major
,
header
->
minor
,
h
eader
->
flags
);
/* Version must be 1.0.x */
if
((
pHeader
->
major
!=
1
)
||
(
pH
eader
->
minor
!=
0
))
if
((
header
->
major
!=
1
)
||
(
h
eader
->
minor
!=
0
))
{
ret
=
D3DRMERR_BADFILE
;
goto
end
;
...
...
dlls/d3drm/d3drm_private.h
View file @
13e3219c
...
...
@@ -37,11 +37,12 @@ HRESULT Direct3DRMTexture_create(REFIID riid, IUnknown** ret_iface) DECLSPEC_HID
HRESULT
load_mesh_data
(
IDirect3DRMMeshBuilder3
*
iface
,
IDirectXFileData
*
data
,
D3DRMLOADTEXTURECALLBACK
load_texture_proc
,
void
*
arg
)
DECLSPEC_HIDDEN
;
typedef
struct
{
struct
d3drm_file_header
{
WORD
major
;
WORD
minor
;
DWORD
flags
;
}
Header
;
};
extern
char
templates
[];
...
...
dlls/d3drm/meshbuilder.c
View file @
13e3219c
...
...
@@ -1521,11 +1521,12 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_Load(IDirect3DRMMeshBuilder3*
IDirectXFileData
*
data
=
NULL
;
const
GUID
*
guid
;
DWORD
size
;
Header
*
header
;
struct
d3drm_file_header
*
header
;
HRESULT
hr
;
HRESULT
ret
=
D3DRMERR_BADOBJECT
;
TRACE
(
"(%p)->(%p,%p,%x,%p,%p)
\n
"
,
This
,
filename
,
name
,
loadflags
,
cb
,
arg
);
TRACE
(
"iface %p, filename %p, name %p, loadflags %#x, cb %p, arg %p.
\n
"
,
iface
,
filename
,
name
,
loadflags
,
cb
,
arg
);
clean_mesh_builder_data
(
This
);
...
...
@@ -1573,10 +1574,10 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_Load(IDirect3DRMMeshBuilder3*
}
hr
=
IDirectXFileData_GetData
(
data
,
NULL
,
&
size
,
(
void
**
)
&
header
);
if
((
hr
!=
DXFILE_OK
)
||
(
size
!=
sizeof
(
H
eader
)))
if
((
hr
!=
DXFILE_OK
)
||
(
size
!=
sizeof
(
*
h
eader
)))
goto
end
;
TRACE
(
"Version is %
d %d %d
\n
"
,
header
->
major
,
header
->
minor
,
header
->
flags
);
TRACE
(
"Version is %
u.%u, flags %#x.
\n
"
,
header
->
major
,
header
->
minor
,
header
->
flags
);
/* Version must be 1.0.x */
if
((
header
->
major
!=
1
)
||
(
header
->
minor
!=
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