Skip to content

Commit 577a4b9

Browse files
committed
Tiny cleanup
1 parent 9d31ef5 commit 577a4b9

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

Client/loader-proxy/main.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,6 @@ void DisplayErrorMessageBox(const std::wstring& message, const std::wstring& err
2626
TerminateProcess(GetCurrentProcess(), 1);
2727
}
2828

29-
auto GetKnownFolderPath(REFKNOWNFOLDERID id, DWORD flags = 0) -> std::filesystem::path
30-
{
31-
wchar_t* path{};
32-
33-
if (HRESULT hr = SHGetKnownFolderPath(id, flags, nullptr, &path); SUCCEEDED(hr))
34-
{
35-
std::filesystem::path result(path);
36-
CoTaskMemFree(path);
37-
return result;
38-
}
39-
40-
return {};
41-
}
42-
4329
auto GetProcessPath() -> std::filesystem::path
4430
{
4531
std::wstring filePath(4096, L'\0');

Client/loader/Install.Manifest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static void ParseManifestMeta(std::ifstream& manifest, std::unordered_map<std::s
2424
{
2525
std::string line;
2626

27-
for (size_t i = 0; std::getline(manifest, line); ++i)
27+
while (std::getline(manifest, line))
2828
{
2929
// Meta information ends after a single empty line.
3030
if (line.empty())

0 commit comments

Comments
 (0)