aboutsummaryrefslogtreecommitdiff
path: root/win32/pe-parser.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-09-21 13:33:29 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-09-21 13:33:29 -0300
commita6437041edd32f7981a65b45fccc27ce857c3ff6 (patch)
tree4bc3daf1b21694534d45232f62e886b026c645df /win32/pe-parser.lua
parent910fbe111c5f6e7e104604346ce67dbe22d15b27 (diff)
parent5fa1201dd0cb5ee5e29b8ebcb57b265335bbe3e9 (diff)
downloadluarocks-a6437041edd32f7981a65b45fccc27ce857c3ff6.tar.gz
luarocks-a6437041edd32f7981a65b45fccc27ce857c3ff6.tar.bz2
luarocks-a6437041edd32f7981a65b45fccc27ce857c3ff6.zip
Merge branch 'master' into luarocks-3
Diffstat (limited to 'win32/pe-parser.lua')
-rw-r--r--win32/pe-parser.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/pe-parser.lua b/win32/pe-parser.lua
index 6b3a48c8..9cd36ffc 100644
--- a/win32/pe-parser.lua
+++ b/win32/pe-parser.lua
@@ -5,7 +5,7 @@
5-- case of 64 bit fields (bit/flag fields). Pointer arithmetic is still done numerically, so for 5-- case of 64 bit fields (bit/flag fields). Pointer arithmetic is still done numerically, so for
6-- very large files this could lead to undefined results. Use with care! 6-- very large files this could lead to undefined results. Use with care!
7-- 7--
8-- Version 0.3, [copyright (c) 2013-2015 Thijs Schreijer](http://www.thijsschreijer.nl) 8-- Version 0.4, [copyright (c) 2013-2015 Thijs Schreijer](http://www.thijsschreijer.nl)
9-- @name pe-parser 9-- @name pe-parser
10-- @class module 10-- @class module
11 11
@@ -532,6 +532,9 @@ function M.msvcrt(infile)
532 if not result then 532 if not result then
533 result = dll:match('(MSVCRTD?)%.DLL') 533 result = dll:match('(MSVCRTD?)%.DLL')
534 end 534 end
535 if not result then
536 result = dll:match('(VCRUNTIME%d*D?)%.DLL')
537 end
535 -- success, found it return name + binary where it was found 538 -- success, found it return name + binary where it was found
536 if result then return result, infile end 539 if result then return result, infile end
537 end 540 end