force no unicode in search parth windows

This commit is contained in:
Cameron Garnham 2014-01-17 14:36:36 -08:00
parent 2a2a469a1b
commit a195fac4ca

View File

@ -50,9 +50,9 @@ void *cast_module_symbol(std::string (*t_path)())
std::string default_search_path()
{
#ifdef CHAISCRIPT_WINDOWS
TCHAR path[2048];
int size = GetModuleFileName(0, path, sizeof(path)-1);
#ifdef CHAISCRIPT_WINDOWS // force no unicode
CHAR path[4096];
int size = GetModuleFileNameA(0, path, sizeof(path)-1);
std::string exepath(path, size);