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
376c2fd0
Commit
376c2fd0
authored
May 12, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
May 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Store the disk id in the MSIFILE structure.
parent
cd6ba351
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
action.c
dlls/msi/action.c
+21
-0
msipriv.h
dlls/msi/msipriv.h
+1
-0
No files found.
dlls/msi/action.c
View file @
376c2fd0
...
...
@@ -1374,6 +1374,26 @@ done:
return
r
;
}
static
UINT
load_file_disk_id
(
MSIPACKAGE
*
package
,
MSIFILE
*
file
)
{
MSIRECORD
*
row
;
static
const
WCHAR
query
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'`'
,
'D'
,
'i'
,
's'
,
'k'
,
'I'
,
'd'
,
'`'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
'`'
,
'M'
,
'e'
,
'd'
,
'i'
,
'a'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'L'
,
'a'
,
's'
,
't'
,
'S'
,
'e'
,
'q'
,
'u'
,
'e'
,
'n'
,
'c'
,
'e'
,
'`'
,
' '
,
'>'
,
'='
,
' '
,
'%'
,
'i'
,
0
};
row
=
MSI_QueryGetRecord
(
package
->
db
,
query
,
file
->
Sequence
);
if
(
!
row
)
{
WARN
(
"query failed
\n
"
);
return
ERROR_FUNCTION_FAILED
;
}
file
->
disk_id
=
MSI_RecordGetInteger
(
row
,
1
);
msiobj_release
(
&
row
->
hdr
);
return
ERROR_SUCCESS
;
}
static
UINT
load_file
(
MSIRECORD
*
row
,
LPVOID
param
)
{
MSIPACKAGE
*
package
=
param
;
...
...
@@ -1435,6 +1455,7 @@ static UINT load_file(MSIRECORD *row, LPVOID param)
}
load_file_hash
(
package
,
file
);
load_file_disk_id
(
package
,
file
);
TRACE
(
"File Loaded (%s)
\n
"
,
debugstr_w
(
file
->
File
));
...
...
dlls/msi/msipriv.h
View file @
376c2fd0
...
...
@@ -468,6 +468,7 @@ typedef struct tagMSIFILE
LPWSTR
TargetPath
;
BOOL
IsCompressed
;
MSIFILEHASHINFO
hash
;
UINT
disk_id
;
}
MSIFILE
;
typedef
struct
tagMSITEMPFILE
...
...
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