| --- a/core/shared/platform/windows/win_file.c | |
| +++ b/core/shared/platform/windows/win_file.c | |
| @@ -1295,13 +1295,13 @@ | |
| if (wbufsize >= 4 && wbuf[0] == L'\\' && wbuf[1] == L'?' | |
| && wbuf[2] == L'?' && wbuf[3] == L'\\') { | |
| - // Starts with \??\ | |
| + // Starts with "\??\" | |
| if (wbufsize >= 6 | |
| && ((wbuf[4] >= L'A' && wbuf[4] <= L'Z') | |
| || (wbuf[4] >= L'a' && wbuf[4] <= L'z')) | |
| && wbuf[5] == L':' && (wbufsize == 6 || wbuf[6] == L'\\')) | |
| { | |
| - // \??\<drive>:\ | |
| + // "\??\<drive>:\" | |
| wbuf += 4; | |
| wbufsize -= 4; | |
| } | |
| @@ -1310,7 +1310,8 @@ | |
| && (wbuf[6] == L'C' || wbuf[6] == L'c') | |
| && wbuf[7] == L'\\') | |
| { | |
| - // \??\UNC\<server>\<share>\ - make sure the final path looks like \\<server>\<share>\ | |
| + // "\??\UNC\<server>\<share>\" - make sure the final path looks | |
| + // like "\\<server>\<share>\" | |
| wbuf += 6; | |
| wbuf[0] = L'\\'; | |
| wbufsize -= 6; |