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
bb4c2108
Commit
bb4c2108
authored
Jan 23, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Jan 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Use buffer start followed by offset when accessing data.
parent
096e3063
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
parsing.c
dlls/d3dxof/parsing.c
+4
-4
No files found.
dlls/d3dxof/parsing.c
View file @
bb4c2108
...
...
@@ -1225,12 +1225,12 @@ static BOOL parse_object_members_list(parse_buffer * buf)
return
FALSE
;
if
(
pt
->
members
[
i
].
type
==
TOKEN_WORD
)
{
*
(((
WORD
*
)(
buf
->
cur_pos_data
+
buf
->
p
data
)))
=
(
WORD
)(
*
(
DWORD
*
)
buf
->
value
);
*
(((
WORD
*
)(
buf
->
pdata
+
buf
->
cur_pos_
data
)))
=
(
WORD
)(
*
(
DWORD
*
)
buf
->
value
);
buf
->
cur_pos_data
+=
2
;
}
else
if
(
pt
->
members
[
i
].
type
==
TOKEN_DWORD
)
{
*
(((
DWORD
*
)(
buf
->
cur_pos_data
+
buf
->
p
data
)))
=
(
DWORD
)(
*
(
DWORD
*
)
buf
->
value
);
*
(((
DWORD
*
)(
buf
->
pdata
+
buf
->
cur_pos_
data
)))
=
(
DWORD
)(
*
(
DWORD
*
)
buf
->
value
);
buf
->
cur_pos_data
+=
4
;
}
else
...
...
@@ -1247,7 +1247,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
return
FALSE
;
if
(
pt
->
members
[
i
].
type
==
TOKEN_FLOAT
)
{
*
(((
float
*
)(
buf
->
cur_pos_data
+
buf
->
p
data
)))
=
(
float
)(
*
(
float
*
)
buf
->
value
);
*
(((
float
*
)(
buf
->
pdata
+
buf
->
cur_pos_
data
)))
=
(
float
)(
*
(
float
*
)
buf
->
value
);
buf
->
cur_pos_data
+=
4
;
}
else
...
...
@@ -1271,7 +1271,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
return
FALSE
;
}
strcpy
((
char
*
)
buf
->
cur_pstrings
,
(
char
*
)
buf
->
value
);
*
(((
LPCSTR
*
)(
buf
->
cur_pos_data
+
buf
->
p
data
)))
=
(
char
*
)
buf
->
cur_pstrings
;
*
(((
LPCSTR
*
)(
buf
->
pdata
+
buf
->
cur_pos_
data
)))
=
(
char
*
)
buf
->
cur_pstrings
;
buf
->
cur_pstrings
+=
len
;
buf
->
cur_pos_data
+=
sizeof
(
LPSTR
);
}
...
...
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