Merge pull request #99 from da2ce7/master
force no unicode in search parth windows
This commit is contained in:
commit
31a4900765
@ -50,9 +50,9 @@ void *cast_module_symbol(std::string (*t_path)())
|
|||||||
|
|
||||||
std::string default_search_path()
|
std::string default_search_path()
|
||||||
{
|
{
|
||||||
#ifdef CHAISCRIPT_WINDOWS
|
#ifdef CHAISCRIPT_WINDOWS // force no unicode
|
||||||
TCHAR path[2048];
|
CHAR path[4096];
|
||||||
int size = GetModuleFileName(0, path, sizeof(path)-1);
|
int size = GetModuleFileNameA(0, path, sizeof(path)-1);
|
||||||
|
|
||||||
std::string exepath(path, size);
|
std::string exepath(path, size);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user