Use MAX_UNICODE_PATH for outrageously long c:\windows directory names

release
Doug Coleman 2007-12-04 14:38:36 -06:00
parent 055c166c04
commit e7cbbaa692
1 changed files with 2 additions and 2 deletions

View File

@ -10,9 +10,9 @@ s64 current_millis(void)
DEFINE_PRIMITIVE(cwd)
{
F_CHAR buf[MAX_PATH + 4];
F_CHAR buf[MAX_UNICODE_PATH];
if(!GetCurrentDirectory(MAX_PATH + 4, buf))
if(!GetCurrentDirectory(MAX_UNICODE_PATH, buf))
io_error();
box_u16_string(buf);