mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Fixed possible accidental conversion memsize type to strict 32 bit
This commit is contained in:
1 parent
8aac45fec0
commit
9e126b5f00
5 files changed
+7
-7
No files matched your search
+1
-1
@@ -1533,7 +1533,7 @@ static Path GetSecretPath(const char *nameOfSecret) {
|
||||
// name should be simple alphanumerics to avoid problems on Windows.
|
||||
bool NativeSaveSecret(const char *nameOfSecret, const std::string &data) {
|
||||
Path path = GetSecretPath(nameOfSecret);
|
||||
if (!File::WriteDataToFile(false, data.data(), (unsigned int)data.size(), path)) {
|
||||
if (!File::WriteDataToFile(false, data.data(), data.size(), path)) {
|
||||
WARN_LOG(SYSTEM, "Failed to write secret '%s' to path '%s'", nameOfSecret, path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user