[Libreoffice-commits] .: setup_native/source
Andras Timar
timar at kemper.freedesktop.org
Tue Mar 27 06:56:59 PDT 2012
setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 45a222a72b49bacddb962bfb34346558e45eff6b
Author: Andras Timar <atimar at suse.com>
Date: Tue Mar 27 15:56:50 2012 +0200
fix number of chars in strncmp after OpenOffice.org->LibreOffice change
diff --git a/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx b/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx
index 4fd1700..c7e4c3b 100644
--- a/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx
+++ b/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx
@@ -117,7 +117,7 @@ static BOOL CheckExtensionInRegistry( LPCSTR lpSubKey )
{ // We will replace registration for word pad
bRet = true;
}
- else if ( strncmp( szBuffer, "LibreOffice.", 15 ) == 0 )
+ else if ( strncmp( szBuffer, "LibreOffice.", 12 ) == 0 )
{ // We will replace registration for our own types, too
bRet = true;
}
@@ -330,7 +330,7 @@ static void saveOldRegistration( LPCSTR lpSubKey )
szBuffer[nSize] = '\0';
// No need to save assocations for our own types
- if ( strncmp( szBuffer, "LibreOffice.", 15 ) != 0 )
+ if ( strncmp( szBuffer, "LibreOffice.", 12 ) != 0 )
{
// Save the old association
RegSetValueExA( hKey, "OOoBackupAssociation", 0,
More information about the Libreoffice-commits
mailing list