Skip to content

Commit b79fd37

Browse files
lukaszgotszaldinteligcbot
authored andcommitted
fix GetProcessName for unsupported systems
fix GetProcessName for any unsupported system
1 parent 466edad commit b79fd37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

IGC/common/SysUtils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ namespace IGC
6767
DWORD size = ::GetModuleFileNameA(NULL, &ret[0], ret.size());
6868
IGC_ASSERT_MESSAGE(size < ret.size(), "Windows path can have MAX_PATH characters max");
6969
ret.resize(size);
70+
#else
71+
ret = "unknownProcess";
7072
#endif
7173

7274
auto pos = ret.rfind('/');

0 commit comments

Comments
 (0)