msi: Test the ScreenX/Y properties.
This commit is contained in:
parent
30a133fe00
commit
ca8e867da7
|
@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
|
||||||
SRCDIR = @srcdir@
|
SRCDIR = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
TESTDLL = msi.dll
|
TESTDLL = msi.dll
|
||||||
IMPORTS = uuid cabinet msi shell32 ole32 oleaut32 advapi32 kernel32 version
|
IMPORTS = uuid cabinet msi shell32 ole32 oleaut32 user32 advapi32 kernel32 version
|
||||||
|
|
||||||
CTESTS = \
|
CTESTS = \
|
||||||
automation.c \
|
automation.c \
|
||||||
|
|
|
@ -4708,6 +4708,7 @@ static void test_installprops(void)
|
||||||
DWORD size, type;
|
DWORD size, type;
|
||||||
LANGID langid;
|
LANGID langid;
|
||||||
HKEY hkey1, hkey2;
|
HKEY hkey1, hkey2;
|
||||||
|
int res;
|
||||||
UINT r;
|
UINT r;
|
||||||
|
|
||||||
GetCurrentDirectory(MAX_PATH, path);
|
GetCurrentDirectory(MAX_PATH, path);
|
||||||
|
@ -4801,6 +4802,16 @@ static void test_installprops(void)
|
||||||
ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS< got %d\n", r);
|
ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS< got %d\n", r);
|
||||||
ok( !lstrcmpA(buf, path), "Expected \"%s\", got \"%s\"\n", path, buf);
|
ok( !lstrcmpA(buf, path), "Expected \"%s\", got \"%s\"\n", path, buf);
|
||||||
|
|
||||||
|
res = GetSystemMetrics(SM_CXSCREEN);
|
||||||
|
size = MAX_PATH;
|
||||||
|
r = MsiGetProperty(hpkg, "ScreenX", buf, &size);
|
||||||
|
ok(atol(buf) == res, "Expected %d, got %ld\n", res, atol(buf));
|
||||||
|
|
||||||
|
res = GetSystemMetrics(SM_CYSCREEN);
|
||||||
|
size = MAX_PATH;
|
||||||
|
r = MsiGetProperty(hpkg, "ScreenY", buf, &size);
|
||||||
|
ok(atol(buf) == res, "Expected %d, got %ld\n", res, atol(buf));
|
||||||
|
|
||||||
CloseHandle(hkey1);
|
CloseHandle(hkey1);
|
||||||
CloseHandle(hkey2);
|
CloseHandle(hkey2);
|
||||||
MsiCloseHandle(hpkg);
|
MsiCloseHandle(hpkg);
|
||||||
|
|
Loading…
Reference in New Issue