From 45a222a72b49bacddb962bfb34346558e45eff6b Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Tue, 27 Mar 2012 15:56:50 +0200 Subject: fix number of chars in strncmp after OpenOffice.org->LibreOffice change --- setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setup_native') diff --git a/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx b/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx index 4fd1700de589..c7e4c3b1d445 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, -- cgit