Permalink
Browse files

Port windows unicode fix from @da2ce7 to 4.x branch

  • Loading branch information...
1 parent 8724e0c commit eb1a1c027554de8a782779511f66af43d35e5d8d @lefticus lefticus committed Jan 23, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main.cpp
View
@@ -46,9 +46,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);

0 comments on commit eb1a1c0

Please sign in to comment.