yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

general: fix incorrect conversions

This commit is contained in:
Liam 2023-07-29 20:43:34 -04:00
parent 83eee1d226
commit 37b278a9a8
4 changed files with 5 additions and 5 deletions

View File

@ -57,7 +57,7 @@ Result VfsDirectoryServiceWrapper::CreateFile(const std::string& path_, u64 size
return FileSys::ERROR_PATH_NOT_FOUND; return FileSys::ERROR_PATH_NOT_FOUND;
} }
FileSys::EntryType entry_type; FileSys::EntryType entry_type{};
if (GetEntryType(&entry_type, path) == ResultSuccess) { if (GetEntryType(&entry_type, path) == ResultSuccess) {
return FileSys::ERROR_PATH_ALREADY_EXISTS; return FileSys::ERROR_PATH_ALREADY_EXISTS;
} }

View File

@ -545,7 +545,7 @@ public:
} }
// Map memory for the NRO // Map memory for the NRO
VAddr map_location; VAddr map_location{};
const auto map_result{MapNro(&map_location, system.ApplicationProcess(), nro_address, const auto map_result{MapNro(&map_location, system.ApplicationProcess(), nro_address,
nro_size, bss_address, bss_size, nro_size + bss_size)}; nro_size, bss_address, bss_size, nro_size + bss_size)};
if (map_result != ResultSuccess) { if (map_result != ResultSuccess) {

View File

@ -104,12 +104,12 @@ public:
} }
Result Read(size_t* out_size, std::span<u8> data) override { Result Read(size_t* out_size, std::span<u8> data) override {
OSStatus status = SSLRead(context, data.data(), data.size(), &out_size); OSStatus status = SSLRead(context, data.data(), data.size(), out_size);
return HandleReturn("SSLRead", out_size, status); return HandleReturn("SSLRead", out_size, status);
} }
Result Write(size_t* out_size, std::span<const u8> data) override { Result Write(size_t* out_size, std::span<const u8> data) override {
OSStatus status = SSLWrite(context, data.data(), data.size(), &out_size); OSStatus status = SSLWrite(context, data.data(), data.size(), out_size);
return HandleReturn("SSLWrite", out_size, status); return HandleReturn("SSLWrite", out_size, status);
} }

View File

@ -697,7 +697,7 @@ private:
IPC::ResponseBuilder rb{ctx, 2, 1}; IPC::ResponseBuilder rb{ctx, 2, 1};
rb.Push(ResultSuccess); rb.Push(ResultSuccess);
rb.PushCopyObjects(*vsync_event); rb.PushCopyObjects(vsync_event);
} }
void ConvertScalingMode(HLERequestContext& ctx) { void ConvertScalingMode(HLERequestContext& ctx) {