diff options
author | Andras Timar <atimar@suse.com> | 2012-03-27 15:56:50 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-03-27 15:56:50 +0200 |
commit | 45a222a72b49bacddb962bfb34346558e45eff6b (patch) | |
tree | 9ec28a8a128e375723a6daeba60939787e2a1c98 /setup_native/source | |
parent | typo fix in comment (diff) | |
download | core-45a222a72b49bacddb962bfb34346558e45eff6b.tar.gz core-45a222a72b49bacddb962bfb34346558e45eff6b.zip |
fix number of chars in strncmp after OpenOffice.org->LibreOffice change
Diffstat (limited to 'setup_native/source')
-rw-r--r-- | setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx | 4 |
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, |