summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-03-26 12:42:11 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-03-26 12:42:11 +0000
commit4c07b29170763866b3387a9a632533b2b46a439f (patch)
tree5ebf6e631ecd134de5cb7a9fed51eb67863a6ebf
parentbf8b1bd7b14bcda779e051f0c235d177ad76283b (diff)
INTEGRATION: CWS mingwport03 (1.3.58); FILE MERGED
2006/11/07 11:28:34 vg 1.3.58.2: RESYNC: (1.3-1.4); FILE MERGED 2006/09/07 09:06:23 vg 1.3.58.1: #i53572# MinGW port
-rw-r--r--automation/source/testtool/registry_win.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/automation/source/testtool/registry_win.cxx b/automation/source/testtool/registry_win.cxx
index 003198465042..fcebbfc42d94 100644
--- a/automation/source/testtool/registry_win.cxx
+++ b/automation/source/testtool/registry_win.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: registry_win.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 00:39:11 $
+ * last change: $Author: vg $ $Date: 2007-03-26 13:42:11 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -74,7 +74,7 @@ String ReadRegistry( String aKey, String aValueName )
HKEY hRegKey;
if ( RegOpenKeyW( hBaseKey,
- aKey.GetBuffer(),
+ reinterpret_cast<LPCWSTR>(aKey.GetBuffer()),
&hRegKey ) == ERROR_SUCCESS )
{
LONG lRet;
@@ -82,7 +82,7 @@ String ReadRegistry( String aKey, String aValueName )
DWORD lSize = sizeof(PathW) / sizeof( sal_Unicode );
DWORD Type = REG_SZ;
- lRet = RegQueryValueExW(hRegKey, aValueName.GetBuffer(), NULL, &Type, (LPBYTE)PathW, &lSize);
+ lRet = RegQueryValueExW(hRegKey, reinterpret_cast<LPCWSTR>(aValueName.GetBuffer()), NULL, &Type, (LPBYTE)PathW, &lSize);
if ((lRet == ERROR_SUCCESS) && (Type == REG_SZ))
{