mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 04:43:53 +00:00
Cygwin can't determine process name using winapi.
This commit is contained in:
parent
3f0bd793fd
commit
f8e7f7ed83
@ -31,7 +31,7 @@ namespace tracy
|
|||||||
|
|
||||||
static const char* GetProcessName()
|
static const char* GetProcessName()
|
||||||
{
|
{
|
||||||
#if defined _MSC_VER || defined __CYGWIN__
|
#if defined _MSC_VER
|
||||||
static char buf[_MAX_PATH];
|
static char buf[_MAX_PATH];
|
||||||
GetModuleFileNameA( nullptr, buf, _MAX_PATH );
|
GetModuleFileNameA( nullptr, buf, _MAX_PATH );
|
||||||
const char* ptr = buf;
|
const char* ptr = buf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user