Skip to content

Commit

Permalink
windows
Browse files Browse the repository at this point in the history
  • Loading branch information
miyako committed Feb 25, 2024
1 parent fe22f23 commit 9708e6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unicode-normalize/4DPlugin-Unicode-Normalize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ static void _ns(normalization_form_t mode, C_TEXT& src, C_TEXT& dst) {
int len = NormalizeString(
(NORM_FORM)mode,
(LPCWSTR)src.getUTF16StringPtr(),
src.getUTF16Length(),
-1,
NULL,
0
);

std::vector<wchar_t>buf(len+1);

len = NormalizeString(
NormalizeString(
(NORM_FORM)mode,
(LPCWSTR)src.getUTF16StringPtr(),
src.getUTF16Length(),
-1,
&buf[0],
buf.size()
);
Expand Down
Binary file not shown.

0 comments on commit 9708e6d

Please sign in to comment.