diff options
author | Nigel Taylor <njtaylor0101@gmail.com> | 2013-04-14 16:04:18 +0100 |
---|---|---|
committer | Nigel Taylor <njtaylor0101@gmail.com> | 2013-04-14 16:04:18 +0100 |
commit | a38c0c403ac503f2a875d84c901021454d2ef8ee (patch) | |
tree | 1b91619ea20125c616005d73e76ca037c91d183f | |
parent | 2c29ad2e7e60d85523a045d3be7b4bd2ee493562 (diff) | |
download | get-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.pm | 4 |
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(); } |