mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-28 16:24:27 +02:00
[BUG_FIXED] Fix crash bug on loading dropbox settings.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1332 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
b1d9ffe83f
commit
b75fb7cb4a
@ -954,6 +954,8 @@ generic_string NppParameters::getCloudSettingsPath(CloudChoice cloudChoice)
|
|||||||
// decode base64
|
// decode base64
|
||||||
size_t b64Len = strlen(pB64);
|
size_t b64Len = strlen(pB64);
|
||||||
size_t asciiLen = getAsciiLenFromBase64Len(b64Len);
|
size_t asciiLen = getAsciiLenFromBase64Len(b64Len);
|
||||||
|
if (asciiLen)
|
||||||
|
{
|
||||||
char * pAsciiText = new char[asciiLen + 1];
|
char * pAsciiText = new char[asciiLen + 1];
|
||||||
int len = base64ToAscii(pAsciiText, pB64);
|
int len = base64ToAscii(pAsciiText, pB64);
|
||||||
if (len)
|
if (len)
|
||||||
@ -971,6 +973,7 @@ generic_string NppParameters::getCloudSettingsPath(CloudChoice cloudChoice)
|
|||||||
delete[] pAsciiText;
|
delete[] pAsciiText;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
//printStr(TEXT("JsonCpp exception captured"));
|
//printStr(TEXT("JsonCpp exception captured"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user