summaryrefslogtreecommitdiff
path: root/setup_native
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-03-27 15:56:50 +0200
committerAndras Timar <atimar@suse.com>2012-03-27 15:56:50 +0200
commit45a222a72b49bacddb962bfb34346558e45eff6b (patch)
tree9ec28a8a128e375723a6daeba60939787e2a1c98 /setup_native
parent935150a59b160cc45652b88fd41824b53af3676d (diff)
fix number of chars in strncmp after OpenOffice.org->LibreOffice change
Diffstat (limited to 'setup_native')
-rw-r--r--setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx4
1 files changed, 2 insertions, 2 deletions
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,