Dylan Smith : d3dxof: Remove assumption of 4 bytes pointers for LPSTR value .

Alexandre Julliard julliard at winehq.org
Fri May 20 12:44:30 CDT 2011


Module: wine
Branch: master
Commit: 0857d2b26bb4bd831cd1ee2de2586e6248c06d7c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0857d2b26bb4bd831cd1ee2de2586e6248c06d7c

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Thu May 19 18:35:17 2011 -0400

d3dxof: Remove assumption of 4 bytes pointers for LPSTR value.

---

 dlls/d3dxof/parsing.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3dxof/parsing.c b/dlls/d3dxof/parsing.c
index c3bfba0..417194b 100644
--- a/dlls/d3dxof/parsing.c
+++ b/dlls/d3dxof/parsing.c
@@ -1140,7 +1140,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
         {
           get_TOKEN(buf);
           TRACE("%s = %s\n", pt->members[i].name, (char*)buf->value);
-          if (!check_buffer(buf, 4))
+          if (!check_buffer(buf, sizeof(LPSTR)))
             return FALSE;
           if (pt->members[i].type == TOKEN_LPSTR)
           {
@@ -1153,7 +1153,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
             strcpy((char*)buf->cur_pstrings, (char*)buf->value);
             *(((LPCSTR*)(buf->cur_pos_data + buf->pdata))) = (char*)buf->cur_pstrings;
             buf->cur_pstrings += len;
-            buf->cur_pos_data += 4;
+            buf->cur_pos_data += sizeof(LPSTR);
           }
           else
           {




More information about the wine-cvs mailing list