fix: rename function. update console function
- Update implementation of EnsureColorfulConsole. - previous implementation will exit if one of the process to stdout and stderr failed. so if it exit at the process of stdout, the process of stderr will not be run. - current implementation will always do process for both of stdout and stderr. the return value will be false if any process of them are failed. - rename GetModuleName to GetModuleFileName and disable annoy Windows macro GetModuleFileName in WinImportSuffix.hpp.
This commit is contained in:
@ -43,7 +43,7 @@ namespace YYCC::WinFctHelper {
|
||||
return YYCC::EncodingHelper::WcharToUTF8(wpath.c_str(), ret);
|
||||
}
|
||||
|
||||
bool GetModuleName(HINSTANCE hModule, std::string& ret) {
|
||||
bool GetModuleFileName(HINSTANCE hModule, std::string& ret) {
|
||||
// create wchar buffer for receiving the temp path.
|
||||
std::wstring wpath(MAX_PATH + 1u, L'\0');
|
||||
DWORD copied_size;
|
||||
|
Reference in New Issue
Block a user