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
bd07966c
Commit
bd07966c
authored
May 11, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
May 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid some non-standard str functions.
parent
8bcdf427
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
msiquery.c
dlls/msi/msiquery.c
+2
-2
table.c
dlls/msi/table.c
+5
-7
No files found.
dlls/msi/msiquery.c
View file @
bd07966c
...
...
@@ -141,7 +141,7 @@ UINT MSI_OpenQuery( MSIDATABASE *db, MSIQUERY **view, LPCWSTR fmt, ... )
/* figure out how much space we need to allocate */
va_start
(
va
,
fmt
);
sz
=
strlenW
(
fmt
)
+
1
;
sz
=
l
strlenW
(
fmt
)
+
1
;
p
=
fmt
;
while
(
*
p
)
{
...
...
@@ -152,7 +152,7 @@ UINT MSI_OpenQuery( MSIDATABASE *db, MSIQUERY **view, LPCWSTR fmt, ... )
switch
(
*
p
)
{
case
's'
:
/* a string */
sz
+=
strlenW
(
va_arg
(
va
,
LPCWSTR
));
sz
+=
l
strlenW
(
va_arg
(
va
,
LPCWSTR
));
break
;
case
'd'
:
case
'i'
:
/* an integer -2147483648 seems to be longest */
...
...
dlls/msi/table.c
View file @
bd07966c
...
...
@@ -35,8 +35,6 @@
#include "msipriv.h"
#include "winnls.h"
#include "wine/unicode.h"
#include "query.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msi
);
...
...
@@ -98,7 +96,7 @@ static LPWSTR encode_streamname(BOOL bTable, LPCWSTR in)
LPWSTR
out
,
p
;
if
(
!
bTable
)
count
=
strlenW
(
in
)
+
2
;
count
=
l
strlenW
(
in
)
+
2
;
out
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
*
sizeof
(
WCHAR
)
);
p
=
out
;
...
...
@@ -1117,11 +1115,11 @@ static UINT TABLE_fetch_stream( struct tagMSIVIEW *view, UINT row, UINT col, ISt
if
(
!
sval
)
return
ERROR_INVALID_PARAMETER
;
len
=
strlenW
(
tv
->
name
)
+
2
+
strlenW
(
sval
);
len
=
lstrlenW
(
tv
->
name
)
+
2
+
l
strlenW
(
sval
);
full_name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
strcpyW
(
full_name
,
tv
->
name
);
strcatW
(
full_name
,
szDot
);
strcatW
(
full_name
,
sval
);
l
strcpyW
(
full_name
,
tv
->
name
);
l
strcatW
(
full_name
,
szDot
);
l
strcatW
(
full_name
,
sval
);
r
=
db_get_raw_stream
(
tv
->
db
,
full_name
,
stm
);
if
(
r
)
...
...
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