Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9ab7d9e2
Commit
9ab7d9e2
authored
Dec 10, 2009
by
James Hawkins
Committed by
Alexandre Julliard
Dec 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Close the original record before copying new data into it.
parent
a44b653d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
msipriv.h
dlls/msi/msipriv.h
+1
-0
record.c
dlls/msi/record.c
+1
-1
table.c
dlls/msi/table.c
+3
-0
No files found.
dlls/msi/msipriv.h
View file @
9ab7d9e2
...
...
@@ -698,6 +698,7 @@ extern UINT msi_parse_command_line( MSIPACKAGE *package, LPCWSTR szCommandLine,
BOOL
preserve_case
);
/* record internals */
extern
void
MSI_CloseRecord
(
MSIOBJECTHDR
*
);
extern
UINT
MSI_RecordSetIStream
(
MSIRECORD
*
,
UINT
,
IStream
*
);
extern
UINT
MSI_RecordGetIStream
(
MSIRECORD
*
,
UINT
,
IStream
**
);
extern
const
WCHAR
*
MSI_RecordGetString
(
const
MSIRECORD
*
,
UINT
);
...
...
dlls/msi/record.c
View file @
9ab7d9e2
...
...
@@ -64,7 +64,7 @@ static void MSI_FreeField( MSIFIELD *field )
}
}
static
void
MSI_CloseRecord
(
MSIOBJECTHDR
*
arg
)
void
MSI_CloseRecord
(
MSIOBJECTHDR
*
arg
)
{
MSIRECORD
*
rec
=
(
MSIRECORD
*
)
arg
;
UINT
i
;
...
...
dlls/msi/table.c
View file @
9ab7d9e2
...
...
@@ -1835,6 +1835,9 @@ static UINT msi_refresh_record( struct tagMSIVIEW *view, MSIRECORD *rec, UINT ro
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
/* Close the original record */
MSI_CloseRecord
(
&
rec
->
hdr
);
count
=
MSI_RecordGetFieldCount
(
rec
);
for
(
i
=
0
;
i
<
count
;
i
++
)
MSI_RecordCopyField
(
curr
,
i
+
1
,
rec
,
i
+
1
);
...
...
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