fix number of chars in strncmp after OpenOffice.org->LibreOffice change

This commit is contained in:
Andras Timar
2012-03-27 15:56:50 +02:00
parent 935150a59b
commit 45a222a72b

View File

@@ -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,