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
00fdc6cb
Commit
00fdc6cb
authored
Sep 08, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Sep 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use msi_string_lookup_id instead of msi_id2stringW where possible.
parent
ace8fd72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
table.c
dlls/msi/table.c
+3
-17
No files found.
dlls/msi/table.c
View file @
00fdc6cb
...
...
@@ -926,20 +926,7 @@ static void msi_free_colinfo( MSICOLUMNINFO *colinfo, UINT count )
LPWSTR
MSI_makestring
(
MSIDATABASE
*
db
,
UINT
stringid
)
{
UINT
sz
=
0
,
r
;
LPWSTR
str
;
r
=
msi_id2stringW
(
db
->
strings
,
stringid
,
NULL
,
&
sz
);
if
(
r
!=
ERROR_SUCCESS
)
return
NULL
;
str
=
msi_alloc
(
sz
*
sizeof
(
WCHAR
)
);
if
(
!
str
)
return
str
;
r
=
msi_id2stringW
(
db
->
strings
,
stringid
,
str
,
&
sz
);
if
(
r
==
ERROR_SUCCESS
)
return
str
;
msi_free
(
str
);
return
NULL
;
return
strdupW
(
msi_string_lookup_id
(
db
->
strings
,
stringid
));
}
static
UINT
get_tablecolumns
(
MSIDATABASE
*
db
,
...
...
@@ -1116,7 +1103,7 @@ static UINT TABLE_fetch_stream( struct tagMSIVIEW *view, UINT row, UINT col, ISt
{
MSITABLEVIEW
*
tv
=
(
MSITABLEVIEW
*
)
view
;
UINT
ival
=
0
,
refcol
=
0
,
r
;
LPWSTR
sval
;
LP
C
WSTR
sval
;
LPWSTR
full_name
;
DWORD
len
;
static
const
WCHAR
szDot
[]
=
{
'.'
,
0
};
...
...
@@ -1140,7 +1127,7 @@ static UINT TABLE_fetch_stream( struct tagMSIVIEW *view, UINT row, UINT col, ISt
return
r
;
/* lookup the string value from the string table */
sval
=
MSI_makestring
(
tv
->
db
,
refcol
);
sval
=
msi_string_lookup_id
(
tv
->
db
->
strings
,
refcol
);
if
(
!
sval
)
return
ERROR_INVALID_PARAMETER
;
...
...
@@ -1154,7 +1141,6 @@ static UINT TABLE_fetch_stream( struct tagMSIVIEW *view, UINT row, UINT col, ISt
if
(
r
)
ERR
(
"fetching stream %s, error = %d
\n
"
,
debugstr_w
(
full_name
),
r
);
msi_free
(
full_name
);
msi_free
(
sval
);
return
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