summaryrefslogtreecommitdiff
path: root/plugins/HistoryPlusPlus/hpp_global.pas
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HistoryPlusPlus/hpp_global.pas')
-rw-r--r--plugins/HistoryPlusPlus/hpp_global.pas3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/HistoryPlusPlus/hpp_global.pas b/plugins/HistoryPlusPlus/hpp_global.pas
index 38ae093051..9bae1efa3c 100644
--- a/plugins/HistoryPlusPlus/hpp_global.pas
+++ b/plugins/HistoryPlusPlus/hpp_global.pas
@@ -580,6 +580,9 @@ var
begin
WSize := (Length(WideStr)+1)*SizeOf(WideChar);
if WSize = SizeOf(WideChar) then exit;
+ if CodePage = 1200 then
+ CodePage := CP_ACP;
+
AnsiStr := WideToAnsiString(WideStr,CodePage);
ASize := Length(AnsiStr)+1;
OpenClipboard(Handle);