summaryrefslogtreecommitdiff
path: root/vcl/win/source/app
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2001-11-06 09:07:23 +0000
committerStephan Schäfer <ssa@openoffice.org>2001-11-06 09:07:23 +0000
commit5bade02e85af85d78e84b1460b4a46e4da3efc77 (patch)
tree88cdcb44d9e751cfe3cc6a26f76b00ad7935c1ae /vcl/win/source/app
parent8b74959151b436789dd95b00aff26d0f903e57b4 (diff)
#92759 xp detection
Diffstat (limited to 'vcl/win/source/app')
-rw-r--r--vcl/win/source/app/salinst.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/vcl/win/source/app/salinst.cxx b/vcl/win/source/app/salinst.cxx
index d6ae7f91e515..e1c7a0cd9ee6 100644
--- a/vcl/win/source/app/salinst.cxx
+++ b/vcl/win/source/app/salinst.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: salinst.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: th $ $Date: 2001-08-07 12:50:13 $
+ * last change: $Author: ssa $ $Date: 2001-11-06 10:07:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -447,6 +447,9 @@ SalInstance* CreateSalInstance()
SalData* pSalData = GetSalData();
// determine the windows version
+ aSalShlData.mbW40 = 0;
+ aSalShlData.mbWNT = 0;
+ aSalShlData.mbWXP = 0;
WORD nVer = (WORD)GetVersion();
aSalShlData.mnVersion = (((WORD)LOBYTE(nVer)) * 100) + HIBYTE(nVer);
if ( aSalShlData.mnVersion >= W95_VERSION )
@@ -456,7 +459,12 @@ SalInstance* CreateSalInstance()
if ( GetVersionEx( &aVerInfo ) )
{
if ( aVerInfo.dwPlatformId == VER_PLATFORM_WIN32_NT )
+ {
aSalShlData.mbWNT = 1;
+ // Windows XP ?
+ if ( aVerInfo.dwMajorVersion == 5 && aVerInfo.dwMinorVersion == 1 )
+ aSalShlData.mbWXP = 1;
+ }
}
pSalData->mnAppThreadId = GetCurrentThreadId();