Commit bd07966c authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Avoid some non-standard str functions.

parent 8bcdf427
...@@ -141,7 +141,7 @@ UINT MSI_OpenQuery( MSIDATABASE *db, MSIQUERY **view, LPCWSTR fmt, ... ) ...@@ -141,7 +141,7 @@ UINT MSI_OpenQuery( MSIDATABASE *db, MSIQUERY **view, LPCWSTR fmt, ... )
/* figure out how much space we need to allocate */ /* figure out how much space we need to allocate */
va_start(va, fmt); va_start(va, fmt);
sz = strlenW(fmt) + 1; sz = lstrlenW(fmt) + 1;
p = fmt; p = fmt;
while (*p) while (*p)
{ {
...@@ -152,7 +152,7 @@ UINT MSI_OpenQuery( MSIDATABASE *db, MSIQUERY **view, LPCWSTR fmt, ... ) ...@@ -152,7 +152,7 @@ UINT MSI_OpenQuery( MSIDATABASE *db, MSIQUERY **view, LPCWSTR fmt, ... )
switch (*p) switch (*p)
{ {
case 's': /* a string */ case 's': /* a string */
sz += strlenW(va_arg(va,LPCWSTR)); sz += lstrlenW(va_arg(va,LPCWSTR));
break; break;
case 'd': case 'd':
case 'i': /* an integer -2147483648 seems to be longest */ case 'i': /* an integer -2147483648 seems to be longest */
......
...@@ -35,8 +35,6 @@ ...@@ -35,8 +35,6 @@
#include "msipriv.h" #include "msipriv.h"
#include "winnls.h" #include "winnls.h"
#include "wine/unicode.h"
#include "query.h" #include "query.h"
WINE_DEFAULT_DEBUG_CHANNEL(msi); WINE_DEFAULT_DEBUG_CHANNEL(msi);
...@@ -98,7 +96,7 @@ static LPWSTR encode_streamname(BOOL bTable, LPCWSTR in) ...@@ -98,7 +96,7 @@ static LPWSTR encode_streamname(BOOL bTable, LPCWSTR in)
LPWSTR out, p; LPWSTR out, p;
if( !bTable ) if( !bTable )
count = strlenW( in )+2; count = lstrlenW( in )+2;
out = HeapAlloc( GetProcessHeap(), 0, count*sizeof(WCHAR) ); out = HeapAlloc( GetProcessHeap(), 0, count*sizeof(WCHAR) );
p = out; p = out;
...@@ -1117,11 +1115,11 @@ static UINT TABLE_fetch_stream( struct tagMSIVIEW *view, UINT row, UINT col, ISt ...@@ -1117,11 +1115,11 @@ static UINT TABLE_fetch_stream( struct tagMSIVIEW *view, UINT row, UINT col, ISt
if( !sval ) if( !sval )
return ERROR_INVALID_PARAMETER; return ERROR_INVALID_PARAMETER;
len = strlenW( tv->name ) + 2 + strlenW( sval ); len = lstrlenW( tv->name ) + 2 + lstrlenW( sval );
full_name = HeapAlloc( GetProcessHeap(), 0, len*sizeof(WCHAR) ); full_name = HeapAlloc( GetProcessHeap(), 0, len*sizeof(WCHAR) );
strcpyW( full_name, tv->name ); lstrcpyW( full_name, tv->name );
strcatW( full_name, szDot ); lstrcatW( full_name, szDot );
strcatW( full_name, sval ); lstrcatW( full_name, sval );
r = db_get_raw_stream( tv->db, full_name, stm ); r = db_get_raw_stream( tv->db, full_name, stm );
if( r ) if( r )
......
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