Cygwin can't determine process name using winapi.

This commit is contained in:
Bartosz Taudul 2017-10-04 01:22:22 +02:00
parent 3f0bd793fd
commit f8e7f7ed83

View File

@ -31,7 +31,7 @@ namespace tracy
static const char* GetProcessName()
{
#if defined _MSC_VER || defined __CYGWIN__
#if defined _MSC_VER
static char buf[_MAX_PATH];
GetModuleFileNameA( nullptr, buf, _MAX_PATH );
const char* ptr = buf;