diff options
| author | Ignacio Burgueño <iburgueno@gmail.com> | 2015-07-01 14:54:08 -0300 |
|---|---|---|
| committer | Ignacio Burgueño <iburgueno@gmail.com> | 2015-07-01 14:54:08 -0300 |
| commit | d00c4e9cd7d0e8209b959710434f8448b4f95915 (patch) | |
| tree | 3a7a93c51fc6e7277a33b30cd4205602e85f7d20 | |
| parent | d7aa0a039eee3b74275d4f579fee7afa93335668 (diff) | |
| parent | 28a89ba6c4f7ed30627ac52066eb783751228c59 (diff) | |
| download | luarocks-d00c4e9cd7d0e8209b959710434f8448b4f95915.tar.gz luarocks-d00c4e9cd7d0e8209b959710434f8448b4f95915.tar.bz2 luarocks-d00c4e9cd7d0e8209b959710434f8448b4f95915.zip | |
Merge pull request #405 from ignacio/pe_parser_04
Updates pe-parser to v0.4
| -rw-r--r-- | win32/pe-parser.lua | 5 |
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 |
