Skip to content

Commit f69a4fb

Browse files
author
virco
committed
fix
1 parent c2458e4 commit f69a4fb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pcompat.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,15 @@ static wchar_t *utf8_to_wchar_path(const char *str){
156156
/* MAX_PATH seems not to be apporopriate here as it is defined as 260, and CreateDirectory() description says:
157157
* There is a default string size limit for paths of 248 characters. This limit is related to how the CreateDirectory function parses paths.
158158
*/
159-
if (len>=248){
159+
// if (len>=248){
160160
ret=psync_new_cnt(wchar_t, len+4);
161161
memcpy(ret, L"\\\\?\\", 4*sizeof(wchar_t));
162162
MultiByteToWideChar(CP_UTF8, 0, str, -1, ret+4, len);
163-
}
164-
else{
165-
ret=psync_new_cnt(wchar_t, len);
166-
MultiByteToWideChar(CP_UTF8, 0, str, -1, ret, len);
167-
}
163+
// }
164+
// else{
165+
// ret=psync_new_cnt(wchar_t, len);
166+
// MultiByteToWideChar(CP_UTF8, 0, str, -1, ret, len);
167+
// }
168168
return ret;
169169
}
170170

0 commit comments

Comments
 (0)