Kaydet (Commit) 45a222a7 authored tarafından Andras Timar's avatar Andras Timar

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

üst 935150a5
...@@ -117,7 +117,7 @@ static BOOL CheckExtensionInRegistry( LPCSTR lpSubKey ) ...@@ -117,7 +117,7 @@ static BOOL CheckExtensionInRegistry( LPCSTR lpSubKey )
{ // We will replace registration for word pad { // We will replace registration for word pad
bRet = true; 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 { // We will replace registration for our own types, too
bRet = true; bRet = true;
} }
...@@ -330,7 +330,7 @@ static void saveOldRegistration( LPCSTR lpSubKey ) ...@@ -330,7 +330,7 @@ static void saveOldRegistration( LPCSTR lpSubKey )
szBuffer[nSize] = '\0'; szBuffer[nSize] = '\0';
// No need to save assocations for our own types // 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 // Save the old association
RegSetValueExA( hKey, "OOoBackupAssociation", 0, RegSetValueExA( hKey, "OOoBackupAssociation", 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment