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
b4bb6e5b
Commit
b4bb6e5b
authored
Apr 21, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Apr 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add the _Property table back, with tests.
parent
d677bd7f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
msipriv.h
dlls/msi/msipriv.h
+0
-4
package.c
dlls/msi/package.c
+0
-0
format.c
dlls/msi/tests/format.c
+0
-3
package.c
dlls/msi/tests/package.c
+16
-0
No files found.
dlls/msi/msipriv.h
View file @
b4bb6e5b
...
...
@@ -207,8 +207,6 @@ struct tagMSIVIEW
struct
msi_dialog_tag
;
typedef
struct
msi_dialog_tag
msi_dialog
;
#define PROPERTY_HASH_SIZE 67
typedef
struct
tagMSIPACKAGE
{
MSIOBJECTHDR
hdr
;
...
...
@@ -243,8 +241,6 @@ typedef struct tagMSIPACKAGE
UINT
WordCount
;
struct
list
props
[
PROPERTY_HASH_SIZE
];
struct
list
subscriptions
;
}
MSIPACKAGE
;
...
...
dlls/msi/package.c
View file @
b4bb6e5b
This diff is collapsed.
Click to expand it.
dlls/msi/tests/format.c
View file @
b4bb6e5b
...
...
@@ -1943,11 +1943,8 @@ static void test_formatrecord_package(void)
MsiRecordSetString
(
hrec
,
0
,
"{a[one]bc[bad]de[two]f}"
);
r
=
MsiFormatRecord
(
package
,
hrec
,
buffer
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"format failed
\n
"
);
todo_wine
{
ok
(
sz
==
0
,
"size wrong(%i)
\n
"
,
sz
);
ok
(
0
==
strcmp
(
buffer
,
""
),
"wrong output (%s)
\n
"
,
buffer
);
}
MsiSetProperty
(
package
,
"bad"
,
""
);
sz
=
sizeof
buffer
;
...
...
dlls/msi/tests/package.c
View file @
b4bb6e5b
...
...
@@ -1500,6 +1500,22 @@ static void test_props(void)
ok
(
r
==
ERROR_MORE_DATA
,
"return wrong
\n
"
);
ok
(
!
strcmp
(
buffer
,
"Photoshop.dl"
),
"buffer wrong
\n
"
);
r
=
MsiSetProperty
(
hpkg
,
"property"
,
"value"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
sz
=
6
;
r
=
MsiGetProperty
(
hpkg
,
"property"
,
buffer
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
!
strcmp
(
buffer
,
"value"
),
"Expected value, got %s
\n
"
,
buffer
);
r
=
MsiSetProperty
(
hpkg
,
"property"
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
sz
=
6
;
r
=
MsiGetProperty
(
hpkg
,
"property"
,
buffer
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
!
strlen
(
buffer
),
"Expected empty string, got %s
\n
"
,
buffer
);
MsiCloseHandle
(
hpkg
);
DeleteFile
(
msifile
);
}
...
...
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