summaryrefslogtreecommitdiff
path: root/plugins/YAMN/src/account.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/YAMN/src/account.cpp')
-rw-r--r--plugins/YAMN/src/account.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/YAMN/src/account.cpp b/plugins/YAMN/src/account.cpp
index db7ce8166b..f240832bee 100644
--- a/plugins/YAMN/src/account.cpp
+++ b/plugins/YAMN/src/account.cpp
@@ -768,7 +768,7 @@ DWORD WriteStringToFileW(HANDLE File, WCHAR *Source)
DWORD Length, WrittenBytes;
WCHAR null = (WCHAR)0;
- if ((Source == NULL) || !(Length = (DWORD)wcslen(Source)))
+ if ((Source == NULL) || !(Length = (DWORD)mir_wstrlen(Source)))
{
if (!WriteFile(File, &null, sizeof(WCHAR), &WrittenBytes, NULL))
{