From bcd31aa043be8f5d006bdc610c0ba3b1c9f92547 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 25 Jul 2018 13:48:36 +0200 Subject: [PATCH] #3204 crea Feature New Normal branch mingw64 --- src/creaSystem.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/creaSystem.cxx b/src/creaSystem.cxx index 38cb2b0..3847f2b 100644 --- a/src/creaSystem.cxx +++ b/src/creaSystem.cxx @@ -220,7 +220,7 @@ std::string System::GetDllAppPath(std::string &nomdll){ //2018-07-06 mingw64 wchar_t currentPath2[512]; GetModuleFileName(hand, currentPath2, _MAX_PATH); - int ret = wcstombs ( currentPath, currentPath2, sizeof(pname) ); + int ret = wcstombs ( currentPath, currentPath2, sizeof(currentPath) ); // GetModuleFileName(hand, currentPath, _MAX_PATH); path = currentPath; @@ -245,7 +245,7 @@ std::string System::GetDllAppPath(const char *nomdll){ //2018-07-06 mingw64 wchar_t currentPath2[512]; GetModuleFileName(hand, currentPath2, _MAX_PATH); - int ret = wcstombs ( currentPath, currentPath2, sizeof(pname) ); + int ret = wcstombs ( currentPath, currentPath2, sizeof(currentPath) ); // GetModuleFileName(hand, currentPath, _MAX_PATH); path = currentPath; -- 2.45.1