summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-10-12 09:40:17 +0000
committerOliver Bolte <obo@openoffice.org>2006-10-12 09:40:17 +0000
commit9d056c3ebe777a2a95ee69988951786eac4b62c0 (patch)
treec2a0e9c9a8b3e861cc81475dd5b2eed0f8cf0632 /framework
parent629fed374894e768ec43551e005cdc300bec1d70 (diff)
INTEGRATION: CWS sb59 (1.5.142); FILE MERGED
2006/08/10 08:16:20 sb 1.5.142.1: #i67487# Made code warning-free (wntmsci10).
Diffstat (limited to 'framework')
-rw-r--r--framework/source/helper/networkdomain.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/framework/source/helper/networkdomain.cxx b/framework/source/helper/networkdomain.cxx
index 250263977b8c..6d43d5019ca7 100644
--- a/framework/source/helper/networkdomain.cxx
+++ b/framework/source/helper/networkdomain.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: networkdomain.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: obo $ $Date: 2006-09-16 13:57:53 $
+ * last change: $Author: obo $ $Date: 2006-10-12 10:40:17 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -49,7 +49,13 @@ namespace framework
//_________________________________________________________________________________________________________________
#define UNICODE
+#if defined _MSC_VER
+#pragma warning(push, 1)
+#endif
#include <windows.h>
+#if defined _MSC_VER
+#pragma warning(pop)
+#endif
//_________________________________________________________________________________________________________________
// Win NT, Win 2000, Win XP
@@ -78,7 +84,7 @@ static DWORD WINAPI GetUserDomainW_WINDOWS( LPWSTR lpBuffer, DWORD nSize )
{
DWORD dwLogon = 0;
DWORD dwLogonSize = sizeof(dwLogon);
- LONG lResult = RegQueryValueEx( hkeyLogon, TEXT("LMLogon"), 0, NULL, (LPBYTE)&dwLogon, &dwLogonSize );
+ RegQueryValueEx( hkeyLogon, TEXT("LMLogon"), 0, NULL, (LPBYTE)&dwLogon, &dwLogonSize );
RegCloseKey( hkeyLogon );
if ( dwLogon )