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
e872681a
Commit
e872681a
authored
Feb 25, 2009
by
James Hawkins
Committed by
Alexandre Julliard
Feb 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Set field zero to the name of the table containing the primary keys.
parent
7d7f14c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
msiquery.c
dlls/msi/msiquery.c
+7
-1
record.c
dlls/msi/tests/record.c
+3
-9
No files found.
dlls/msi/msiquery.c
View file @
e872681a
...
@@ -842,7 +842,7 @@ struct msi_primary_key_record_info
...
@@ -842,7 +842,7 @@ struct msi_primary_key_record_info
static
UINT
msi_primary_key_iterator
(
MSIRECORD
*
rec
,
LPVOID
param
)
static
UINT
msi_primary_key_iterator
(
MSIRECORD
*
rec
,
LPVOID
param
)
{
{
struct
msi_primary_key_record_info
*
info
=
param
;
struct
msi_primary_key_record_info
*
info
=
param
;
LPCWSTR
name
;
LPCWSTR
name
,
table
;
DWORD
type
;
DWORD
type
;
type
=
MSI_RecordGetInteger
(
rec
,
4
);
type
=
MSI_RecordGetInteger
(
rec
,
4
);
...
@@ -851,6 +851,12 @@ static UINT msi_primary_key_iterator( MSIRECORD *rec, LPVOID param )
...
@@ -851,6 +851,12 @@ static UINT msi_primary_key_iterator( MSIRECORD *rec, LPVOID param )
info
->
n
++
;
info
->
n
++
;
if
(
info
->
rec
)
if
(
info
->
rec
)
{
{
if
(
info
->
n
==
1
)
{
table
=
MSI_RecordGetString
(
rec
,
1
);
MSI_RecordSetStringW
(
info
->
rec
,
0
,
table
);
}
name
=
MSI_RecordGetString
(
rec
,
3
);
name
=
MSI_RecordGetString
(
rec
,
3
);
MSI_RecordSetStringW
(
info
->
rec
,
info
->
n
,
name
);
MSI_RecordSetStringW
(
info
->
rec
,
info
->
n
,
name
);
}
}
...
...
dlls/msi/tests/record.c
View file @
e872681a
...
@@ -552,17 +552,11 @@ static void test_fieldzero(void)
...
@@ -552,17 +552,11 @@ static void test_fieldzero(void)
lstrcpyA
(
buf
,
"apple"
);
lstrcpyA
(
buf
,
"apple"
);
r
=
MsiRecordGetString
(
rec
,
0
,
buf
,
&
sz
);
r
=
MsiRecordGetString
(
rec
,
0
,
buf
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
todo_wine
ok
(
!
lstrcmpA
(
buf
,
"drone"
),
"Expected
\"
drone
\"
, got
\"
%s
\"\n
"
,
buf
);
{
ok
(
sz
==
5
,
"Expectd 5, got %d
\n
"
,
sz
);
ok
(
!
lstrcmpA
(
buf
,
"drone"
),
"Expected
\"
drone
\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
sz
==
5
,
"Expectd 5, got %d
\n
"
,
sz
);
}
r
=
MsiRecordIsNull
(
rec
,
0
);
r
=
MsiRecordIsNull
(
rec
,
0
);
todo_wine
ok
(
r
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
r
);
{
ok
(
r
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
r
);
}
MsiCloseHandle
(
rec
);
MsiCloseHandle
(
rec
);
...
...
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