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
2dd31728
Commit
2dd31728
authored
Jan 05, 2005
by
Vitaly Lipatov
Committed by
Alexandre Julliard
Jan 05, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get real screen properties.
parent
23b291a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
Makefile.in
dlls/msi/Makefile.in
+1
-1
package.c
dlls/msi/package.c
+15
-11
No files found.
dlls/msi/Makefile.in
View file @
2dd31728
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
msi.dll
IMPORTS
=
shell32 cabinet oleaut32 ole32 version user32 advapi32 kernel32
IMPORTS
=
shell32 cabinet oleaut32 ole32 version user32
gdi32
advapi32 kernel32
EXTRALIBS
=
-luuid
$(LIBUNICODE)
C_SRCS
=
\
...
...
dlls/msi/package.c
View file @
2dd31728
...
...
@@ -27,6 +27,7 @@
#include "winreg.h"
#include "winnls.h"
#include "shlwapi.h"
#include "wingdi.h"
#include "wine/debug.h"
#include "msi.h"
#include "msiquery.h"
...
...
@@ -162,7 +163,8 @@ static VOID set_installer_properties(MSIPACKAGE *package)
WCHAR
*
ptr
;
OSVERSIONINFOA
OSVersion
;
DWORD
verval
;
WCHAR
verstr
[
10
],
msiver
[
10
];
WCHAR
verstr
[
10
],
bufstr
[
20
];
HDC
dc
;
static
const
WCHAR
cszbs
[]
=
{
'\\'
,
0
};
static
const
WCHAR
CFF
[]
=
...
...
@@ -361,16 +363,18 @@ Privileged
/* just fudge this */
MSI_SetPropertyW
(
package
,
szSPL
,
szSix
);
sprintfW
(
msiver
,
szFormat2
,
MSI_MAJORVERSION
,
MSI_MINORVERSION
);
MSI_SetPropertyW
(
package
,
szVersionMsi
,
msiver
);
/* Screen properties. FIXME: need to get correct values from system */
sprintfW
(
msiver
,
szScreenFormat
,
800
);
MSI_SetPropertyW
(
package
,
szScreenX
,
msiver
);
sprintfW
(
msiver
,
szScreenFormat
,
600
);
MSI_SetPropertyW
(
package
,
szScreenY
,
msiver
);
sprintfW
(
msiver
,
szScreenFormat
,
24
);
MSI_SetPropertyW
(
package
,
szColorBits
,
msiver
);
sprintfW
(
bufstr
,
szFormat2
,
MSI_MAJORVERSION
,
MSI_MINORVERSION
);
MSI_SetPropertyW
(
package
,
szVersionMsi
,
bufstr
);
/* Screen properties. */
dc
=
GetDC
(
0
);
sprintfW
(
bufstr
,
szScreenFormat
,
GetDeviceCaps
(
dc
,
HORZRES
)
);
MSI_SetPropertyW
(
package
,
szScreenX
,
bufstr
);
sprintfW
(
bufstr
,
szScreenFormat
,
GetDeviceCaps
(
dc
,
VERTRES
));
MSI_SetPropertyW
(
package
,
szScreenY
,
bufstr
);
sprintfW
(
bufstr
,
szScreenFormat
,
GetDeviceCaps
(
dc
,
BITSPIXEL
));
MSI_SetPropertyW
(
package
,
szColorBits
,
bufstr
);
ReleaseDC
(
0
,
dc
);
}
UINT
MSI_OpenPackageW
(
LPCWSTR
szPackage
,
MSIPACKAGE
**
pPackage
)
...
...
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