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
2fb648c0
Commit
2fb648c0
authored
Sep 02, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Add tests for 64-bit properties.
parent
d2f10747
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
package.c
dlls/msi/tests/package.c
+28
-0
No files found.
dlls/msi/tests/package.c
View file @
2fb648c0
...
...
@@ -41,6 +41,7 @@ static BOOL (WINAPI *pOpenProcessToken)( HANDLE, DWORD, PHANDLE );
static
LONG
(
WINAPI
*
pRegDeleteKeyExA
)(
HKEY
,
LPCSTR
,
REGSAM
,
DWORD
);
static
LONG
(
WINAPI
*
pRegDeleteKeyExW
)(
HKEY
,
LPCWSTR
,
REGSAM
,
DWORD
);
static
BOOL
(
WINAPI
*
pIsWow64Process
)(
HANDLE
,
PBOOL
);
static
void
(
WINAPI
*
pGetSystemInfo
)(
LPSYSTEM_INFO
);
static
BOOL
(
WINAPI
*
pSRRemoveRestorePoint
)(
DWORD
);
static
BOOL
(
WINAPI
*
pSRSetRestorePointA
)(
RESTOREPOINTINFOA
*
,
STATEMGRSTATUS
*
);
...
...
@@ -63,6 +64,7 @@ static void init_functionpointers(void)
GET_PROC
(
hadvapi32
,
RegDeleteKeyExA
)
GET_PROC
(
hadvapi32
,
RegDeleteKeyExW
)
GET_PROC
(
hkernel32
,
IsWow64Process
)
GET_PROC
(
hkernel32
,
GetSystemInfo
)
hsrclient
=
LoadLibraryA
(
"srclient.dll"
);
GET_PROC
(
hsrclient
,
SRRemoveRestorePoint
);
...
...
@@ -9550,6 +9552,7 @@ static void test_installprops(void)
UINT
r
;
REGSAM
access
=
KEY_ALL_ACCESS
;
BOOL
wow64
;
SYSTEM_INFO
si
;
if
(
pIsWow64Process
&&
pIsWow64Process
(
GetCurrentProcess
(),
&
wow64
)
&&
wow64
)
access
|=
KEY_WOW64_64KEY
;
...
...
@@ -9660,6 +9663,31 @@ static void test_installprops(void)
r
=
MsiGetProperty
(
hpkg
,
"ScreenY"
,
buf
,
&
size
);
ok
(
atol
(
buf
)
==
res
,
"Expected %d, got %ld
\n
"
,
res
,
atol
(
buf
));
if
(
pGetSystemInfo
)
{
pGetSystemInfo
(
&
si
);
if
(
si
.
wProcessorArchitecture
==
PROCESSOR_ARCHITECTURE_AMD64
)
{
buf
[
0
]
=
0
;
size
=
MAX_PATH
;
r
=
MsiGetProperty
(
hpkg
,
"MsiAMD64"
,
buf
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to get property: %d
\n
"
,
r
);
ok
(
buf
[
0
],
"property not set
\n
"
);
buf
[
0
]
=
0
;
size
=
MAX_PATH
;
r
=
MsiGetProperty
(
hpkg
,
"Msix64"
,
buf
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to get property: %d
\n
"
,
r
);
ok
(
buf
[
0
],
"property not set
\n
"
);
buf
[
0
]
=
0
;
size
=
MAX_PATH
;
r
=
MsiGetProperty
(
hpkg
,
"System64Folder"
,
buf
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to get property: %d
\n
"
,
r
);
ok
(
buf
[
0
],
"property not set
\n
"
);
}
}
CloseHandle
(
hkey1
);
CloseHandle
(
hkey2
);
MsiCloseHandle
(
hpkg
);
...
...
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