Fixed two small typos.

This commit is contained in:
Leon Styhre 2022-01-02 21:02:43 +01:00
parent 280a6d101b
commit 0a72780b59

View file

@ -1334,7 +1334,7 @@ const std::string FileData::findEmulatorPath(std::string& command)
for (std::string path : emulatorSystemPaths) { for (std::string path : emulatorSystemPaths) {
#if defined(_WIN64) #if defined(_WIN64)
std::wstring pathWide = Utils::String::stringToWideString(path); std::wstring pathWide = Utils::String::stringToWideString(path);
// Search for the emulator using the PATH environmental variable. // Search for the emulator using the PATH environment variable.
DWORD size = SearchPathW(nullptr, pathWide.c_str(), L".exe", 0, nullptr, nullptr); DWORD size = SearchPathW(nullptr, pathWide.c_str(), L".exe", 0, nullptr, nullptr);
if (size) { if (size) {
@ -1395,7 +1395,7 @@ const std::string FileData::findEmulatorPath(std::string& command)
#if defined(_WIN64) #if defined(_WIN64)
std::wstring emuExecutableWide = Utils::String::stringToWideString(emuExecutable); std::wstring emuExecutableWide = Utils::String::stringToWideString(emuExecutable);
// Search for the emulator using the PATH environmental variable. // Search for the emulator using the PATH environment variable.
DWORD size = SearchPathW(nullptr, emuExecutableWide.c_str(), L".exe", 0, nullptr, nullptr); DWORD size = SearchPathW(nullptr, emuExecutableWide.c_str(), L".exe", 0, nullptr, nullptr);
if (size) { if (size) {