summaryrefslogtreecommitdiff
path: root/framework/source/helper
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
commit9448372e6d05db4a282370c42cf340620243dd71 (patch)
tree2664f58867fb9ac80b37d015482e59a52022a5ba /framework/source/helper
parentea7562bd5b4f7855310624eca17dc05ec53b9539 (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/source/helper')
-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 c934636ceb..55262530ea 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 )