aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNigel Taylor <njtaylor0101@gmail.com>2013-04-14 16:04:18 +0100
committerNigel Taylor <njtaylor0101@gmail.com>2013-04-14 16:04:18 +0100
commita38c0c403ac503f2a875d84c901021454d2ef8ee (patch)
tree1b91619ea20125c616005d73e76ca037c91d183f
parent2c29ad2e7e60d85523a045d3be7b4bd2ee493562 (diff)
downloadget-flash-videos-a38c0c403ac503f2a875d84c901021454d2ef8ee.tar.gz
combine version GetACP is now install by Encode::Locale change to only import if doesn't exist already
-rw-r--r--lib/FlashVideo/Utils.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/FlashVideo/Utils.pm b/lib/FlashVideo/Utils.pm
index a519b9b..5eb2973 100644
--- a/lib/FlashVideo/Utils.pm
+++ b/lib/FlashVideo/Utils.pm
@@ -236,7 +236,9 @@ sub get_win_codepage {
%Win32::API::Type::Known = (int => 'i');
}
- Win32::API->Import("kernel32", "int GetACP()");
+ unless (defined &GetACP) {
+ Win32::API->Import("kernel32", "int GetACP()");
+ }
return "cp" . GetACP();
}