minor refactoring
This commit is contained in:
@@ -18,7 +18,7 @@ namespace OpenVulkano
|
||||
{
|
||||
std::string exe(MAX_PATH, '\0');
|
||||
DWORD len = GetModuleFileNameA(NULL, exe.data(), MAX_PATH);
|
||||
exe.resize(std::max<size_t>(len, exe.size()));
|
||||
exe.resize(len);
|
||||
return exe;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user