Skip to content

Commit f88629c

Browse files
authored
Update conv.cpp
932->936
1 parent d833130 commit f88629c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/conv.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ wchar_t* _conv_from_utf8(const char* s) {
1717
}
1818

1919
wchar_t* _conv_from_932(const char* s) {
20-
auto count = MultiByteToWideChar(932, MB_ERR_INVALID_CHARS, s, strlen(s), NULL, 0);
20+
auto count = MultiByteToWideChar(936, MB_ERR_INVALID_CHARS, s, strlen(s), NULL, 0);
2121
if (count == 0) {
2222
return NULL;
2323
}
2424
auto dest = new wchar_t[count + 1];
25-
auto err = MultiByteToWideChar(932, MB_ERR_INVALID_CHARS, s, strlen(s), dest, count);
25+
auto err = MultiByteToWideChar(936, MB_ERR_INVALID_CHARS, s, strlen(s), dest, count);
2626
if (err == 0) {
2727
return NULL;
2828
}
@@ -31,12 +31,12 @@ wchar_t* _conv_from_932(const char* s) {
3131
}
3232

3333
char* _conv_to_932(const wchar_t* s) {
34-
auto count = WideCharToMultiByte(932, 0, s, wcslen(s), NULL, 0, NULL, NULL);
34+
auto count = WideCharToMultiByte(936, 0, s, wcslen(s), NULL, 0, NULL, NULL);
3535
if (count == 0) {
3636
return NULL;
3737
}
3838
auto dest = new char[count + 1];
39-
auto err = WideCharToMultiByte(932, 0, s, wcslen(s), dest, count, NULL, NULL);
39+
auto err = WideCharToMultiByte(936, 0, s, wcslen(s), dest, count, NULL, NULL);
4040
if (err == 0) {
4141
return NULL;
4242
}

0 commit comments

Comments
 (0)