Commit 16466af7 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

gcc 4.0 -Wpointer-sign fixes.

parent 53a3d04d
...@@ -55,7 +55,7 @@ struct tagMSIOBJECTHDR ...@@ -55,7 +55,7 @@ struct tagMSIOBJECTHDR
{ {
UINT magic; UINT magic;
UINT type; UINT type;
DWORD refcount; LONG refcount;
msihandledestructor destructor; msihandledestructor destructor;
struct tagMSIOBJECTHDR *next; struct tagMSIOBJECTHDR *next;
struct tagMSIOBJECTHDR *prev; struct tagMSIOBJECTHDR *prev;
...@@ -283,8 +283,8 @@ extern HRESULT init_string_table( IStorage *stg ); ...@@ -283,8 +283,8 @@ extern HRESULT init_string_table( IStorage *stg );
/* string table functions */ /* string table functions */
extern BOOL msi_addstring( string_table *st, int string_no, const CHAR *data, int len, UINT refcount ); extern BOOL msi_addstring( string_table *st, UINT string_no, const CHAR *data, int len, UINT refcount );
extern BOOL msi_addstringW( string_table *st, int string_no, const WCHAR *data, int len, UINT refcount ); extern BOOL msi_addstringW( string_table *st, UINT string_no, const WCHAR *data, int len, UINT refcount );
extern UINT msi_id2stringW( string_table *st, UINT string_no, LPWSTR buffer, UINT *sz ); extern UINT msi_id2stringW( string_table *st, UINT string_no, LPWSTR buffer, UINT *sz );
extern UINT msi_id2stringA( string_table *st, UINT string_no, LPSTR buffer, UINT *sz ); extern UINT msi_id2stringA( string_table *st, UINT string_no, LPSTR buffer, UINT *sz );
......
...@@ -142,7 +142,7 @@ static void st_mark_entry_used( string_table *st, UINT n ) ...@@ -142,7 +142,7 @@ static void st_mark_entry_used( string_table *st, UINT n )
st->freeslot = n + 1; st->freeslot = n + 1;
} }
int msi_addstring( string_table *st, int n, const CHAR *data, int len, UINT refcount ) int msi_addstring( string_table *st, UINT n, const CHAR *data, int len, UINT refcount )
{ {
int sz; int sz;
...@@ -190,7 +190,7 @@ int msi_addstring( string_table *st, int n, const CHAR *data, int len, UINT refc ...@@ -190,7 +190,7 @@ int msi_addstring( string_table *st, int n, const CHAR *data, int len, UINT refc
return n; return n;
} }
int msi_addstringW( string_table *st, int n, const WCHAR *data, int len, UINT refcount ) int msi_addstringW( string_table *st, UINT n, const WCHAR *data, int len, UINT refcount )
{ {
/* TRACE("[%2d] = %s\n", string_no, debugstr_an(data,len) ); */ /* TRACE("[%2d] = %s\n", string_no, debugstr_an(data,len) ); */
......
...@@ -331,7 +331,7 @@ static DWORD write_string( LPBYTE data, DWORD ofs, LPCSTR str ) ...@@ -331,7 +331,7 @@ static DWORD write_string( LPBYTE data, DWORD ofs, LPCSTR str )
DWORD len = lstrlenA( str ) + 1; DWORD len = lstrlenA( str ) + 1;
write_dword( data, ofs, len ); write_dword( data, ofs, len );
if( data ) if( data )
lstrcpyA( &data[ofs + 4], str ); memcpy( &data[ofs + 4], str, len );
return (7 + len) & ~3; return (7 + len) & ~3;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment