fixed getModulePath_ local buffer size incorrectly set to 1 for debugging purposes

This commit is contained in:
Gregory Pakosz 2016-09-08 18:51:36 +02:00
parent 574cea6708
commit 77ab6870d6

View File

@ -58,7 +58,7 @@ extern "C" {
static int WAI_PREFIX(getModulePath_)(HMODULE module, char* out, int capacity, int* dirname_length)
{
wchar_t buffer1[1];
wchar_t buffer1[MAX_PATH];
wchar_t buffer2[MAX_PATH];
wchar_t* path = NULL;
int length = -1;