diff options
Diffstat (limited to 'plugins/PasteIt/src/PasteToWeb.cpp')
-rw-r--r-- | plugins/PasteIt/src/PasteToWeb.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/PasteIt/src/PasteToWeb.cpp b/plugins/PasteIt/src/PasteToWeb.cpp index 52f7c8f147..c57cd58c38 100644 --- a/plugins/PasteIt/src/PasteToWeb.cpp +++ b/plugins/PasteIt/src/PasteToWeb.cpp @@ -284,9 +284,9 @@ void PasteToWeb::FromClipboard() if (mir_strlen(cStr) > str.length())
{
str = L"";
- LPWSTR wStr = mir_a2u_cp(cStr, CP_ACP);
- str.append(wStr, wStr + mir_wstrlen(wStr));
- mir_free(wStr);
+ LPWSTR p = mir_a2u_cp(cStr, CP_ACP);
+ str.append(p, p + mir_wstrlen(p));
+ mir_free(p);
}
GlobalUnlock(obj);
}
|