diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-09-26 09:47:21 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-10-07 16:30:52 +0200 |
commit | 9142f9a1a10f2df24f55e21b9203058bd0d2626a (patch) | |
tree | e38d72c8eb8edf28fe6ad987597be768dfd83c91 /sw | |
parent | ce285da92f95995a4e7c3a63713a8b004a1ab967 (diff) |
WaE: win32 cleanup
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/vba/vbasystem.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/ui/vba/vbasystem.cxx b/sw/source/ui/vba/vbasystem.cxx index f09ba92fad6b..3aa035d353b8 100644 --- a/sw/source/ui/vba/vbasystem.cxx +++ b/sw/source/ui/vba/vbasystem.cxx @@ -101,7 +101,6 @@ uno::Any PrivateProfileStringListener::getValueEvent() #ifdef WNT HKEY hBaseKey = NULL; ByteString sSubKey; - sal_Int32 nBaseKeyIndex = maGroupName.Search('\\'); lcl_getRegKeyInfo( maGroupName, hBaseKey, sSubKey ); if( hBaseKey != NULL ) { @@ -148,7 +147,6 @@ void PrivateProfileStringListener::setValueEvent( const css::uno::Any& value ) #ifdef WNT HKEY hBaseKey = NULL; ByteString sSubKey; - sal_Int32 nBaseKeyIndex = maGroupName.Search('\\'); lcl_getRegKeyInfo( maGroupName, hBaseKey, sSubKey ); if( hBaseKey != NULL ) { @@ -161,7 +159,7 @@ void PrivateProfileStringListener::setValueEvent( const css::uno::Any& value ) LPCTSTR szValue = TEXT( rtl::OUStringToOString( aValue, RTL_TEXTENCODING_UTF8 ).getStr() ); DWORD cbData = sizeof(TCHAR) * (_tcslen(szValue) + 1); LPCTSTR lpValueName = TEXT(maKey.GetBuffer()); - lResult = RegSetValueEx( hKey, lpValueName, NULL, REG_SZ, (LPBYTE)szValue, cbData ); + lResult = RegSetValueEx( hKey, lpValueName, 0 /* Reserved */, REG_SZ, (LPBYTE)szValue, cbData ); RegCloseKey( hKey ); } } |