win10 + vs2019 + wxWidgets 3.2.21;
I run into a problem that wxSQLite3Cipher::SetCipher() is always return false. When I debug into this function, I found the const char* cipherName is corrupted. But if I first duplicate the wxString returned by GetCipherName(cipherType), then the result is fine. Did I do something wrong? My project character set is unicode.
corrupted cipherName:

right cipherName:

win10 + vs2019 + wxWidgets 3.2.21;
I run into a problem that wxSQLite3Cipher::SetCipher() is always return false. When I debug into this function, I found the const char* cipherName is corrupted. But if I first duplicate the wxString returned by GetCipherName(cipherType), then the result is fine. Did I do something wrong? My project character set is unicode.
corrupted cipherName:


right cipherName: