Commit Graph

60 Commits

Author SHA1 Message Date
Joachim Bauch aa6b93bab4 Support section alignments that are smaller than the memory page size (fixes #20/#21). 2015-02-28 23:01:44 +01:00
Joachim Bauch 625aa47035 Use "uintptr_t" instead of custom type. 2015-02-27 00:55:13 +01:00
Joachim Bauch dacdbaba9a Deny loading any other architecture than 64bit if compiled for 64bit. 2015-02-27 00:55:13 +01:00
Joachim Bauch 6212358a24 Use function from tchar.h instead of #ifdef. 2015-02-27 00:55:13 +01:00
Joachim Bauch 808c043faf Fixed indentation. 2015-02-27 00:55:13 +01:00
Joachim Bauch dcccd79158 Merge pull request #22 from dismantl/findresource-bugfix
small fix relating to searching memory-loaded modules for named resources
2015-02-27 00:23:06 +01:00
Joachim Bauch b889c72727 Bump year in copyright. 2015-02-27 00:22:03 +01:00
Dan Staples 1d55f77753 small fix relating to searching IMAGE_RESOURCE_DIRECTORY_ENTRYs for named resources 2015-01-05 20:29:46 -05:00
Joachim Bauch 5a448ce93a Support loading (and running) EXE files (fixes #7). 2014-09-21 18:34:11 +02:00
Joachim Bauch 2d504b533e Check architecture of library to load. 2014-09-21 17:33:18 +02:00
Joachim Bauch bb736dc160 Added explicit casts. 2014-09-21 14:19:36 +02:00
Joachim Bauch 8d286f8566 Bump version number. 2014-09-21 14:11:37 +02:00
Joachim Bauch ce62f60a6e Bump year in copyright. 2014-09-21 14:11:37 +02:00
Joachim Bauch de7840af70 Removed trailing whitespaces. 2014-09-21 14:11:37 +02:00
Joachim Bauch f76963b8ea Fixed copying too much into local headers.
Reported by Sea Caspian (j.sea.caspian [at] gmail.com)
2013-12-12 10:14:51 +01:00
Joachim Bauch e75438a006 Execute thread-local-storage callbacks (GitHub #11).
Pull request by @glysbaysb, cleaned up and adjusted to match code style.
2013-12-07 18:16:14 +01:00
Joachim Bauch 147fdde848 Fixed potential endless loop while searching for resources (github issue #10). 2013-04-12 18:35:12 +02:00
Joachim Bauch fc6a58a785 Changed variable definitions to fix compiler errors in Visual Studio. 2013-03-12 10:00:36 +01:00
Joachim Bauch 54e3a29836 Use same parameter type as in header file. 2013-03-12 01:25:56 +01:00
Joachim Bauch fa31e34ff9 Fixed compiler warnings in Visual Studio (github issue #8) 2013-03-12 01:25:07 +01:00
Joachim Bauch 3c74a360e5 Differ between UNICODE and _UNICODE. 2013-03-12 01:15:52 +01:00
Joachim Bauch f4d15a53ac Added memory module resource loading API. 2013-03-12 00:43:57 +01:00
Joachim Bauch a199afce7c Use spaces instead of tabs - sorry for the noise. 2013-03-09 00:42:29 +01:00
Joachim Bauch f210f67771 Check against NULL, not INVALID_HANDLE_VALUE. 2013-03-09 00:39:08 +01:00
Joachim Bauch 536a597836 Use "SetLastError" for errors in "GetProcAddress". 2013-03-09 00:37:11 +01:00
Joachim Bauch c4e8de7d4f Use "SetLastError" to flag errors to caller while loading. 2013-03-09 00:35:50 +01:00
Joachim Bauch 6f4f2bdd5b Handle OOM case for result object. 2013-03-08 23:58:49 +01:00
Joachim Bauch 44ae72da04 Added API to delegate resolving of dependencies to custom methods (github issue #5, inspired by pull request #9) 2013-03-08 23:57:07 +01:00
Joachim Bauch 0c19658eb1 Bump year in copyright 2013-03-05 01:16:14 +01:00
Joachim Bauch d9a3b23830 Use \LoadLibraryA" to fix potential error when compiling with UNICODE being defined (github issue #6) 2013-03-05 00:46:11 +01:00
Joachim Bauch c01e010793 Reserve and commit memory in one step (fixes error found by Coverity, CID 989314). 2013-03-05 00:40:27 +01:00
Joachim Bauch 2b846b727a Removed logically dead code (found by Coverity, CID 989316). 2013-03-05 00:36:27 +01:00
Joachim Bauch 6a5d3d420e Fixed potential memory leak if "realloc" fails. 2013-03-05 00:32:42 +01:00
Joachim Bauch 0f6bdc7c16 Fixed potential resource leak of library handle (found by Coverity, CID 989315) 2013-03-05 00:30:25 +01:00
Joachim Bauch 8a7f64ea3a Use lowercase filename to support compilation on Linux using MinGW. 2013-03-05 00:27:43 +01:00
Joachim Bauch d0cf3a2084 updated license to MPL 2.0 2012-06-28 19:42:15 +02:00
Joachim Bauch ca4f504527 next release will be 0.0.3 2012-04-09 22:13:02 +02:00
Joachim Bauch 73833b3eb5 "LoadLibrary" returns NULL instead of INVALID_HANDLE_VALUE on errors (Issue #2) 2012-04-09 22:08:25 +02:00
Joachim Bauch 7feb92c9ef Bumped year in copyright 2012-04-09 22:07:14 +02:00
Joachim Bauch 5cc82f24d0 bumped year in copyright 2011-01-17 21:36:35 +01:00
Joachim Bauch 10b29c5045 Merge branch 'master' of github.com:fancycode/MemoryModule 2011-01-17 21:25:53 +01:00
Joachim Bauch 0ddce45dc5 fixed compilation with Vista SDK where "IMAGE_SIZEOF_BASE_RELOCATION" is no longer defined (GitHub issue #1) 2011-01-17 21:25:27 +01:00
Joachim Bauch 9e480a552e use correct size for sections that have no raw size defined but define their data size 2010-10-24 22:19:26 +02:00
Joachim Bauch 178ea7363c updated code layout 2010-10-24 22:17:57 +02:00
Joachim Bauch b0e63038e2 removed macro to calculate addresses, not really needed 2010-10-24 22:10:25 +02:00
Joachim Bauch 75021eff5f adjust addresses to protect by upper 32bit for 64bit modules 2010-10-24 03:03:35 +02:00
Joachim Bauch 2f0bb27c68 added support for 64bit DLLs 2010-10-24 02:48:19 +02:00
Joachim Bauch 1ece5ca28d updated year in copyright, updated notice about where to get code from 2010-10-24 00:39:24 +02:00
Joachim Bauch 1f8eb009e5 set eol-style on all files 2010-10-23 22:29:04 +00:00
Joachim Bauch 3386ad9dfc fixed compilation problems with gcc 3.2.3 (mingw special 20030504-1) 2005-04-27 19:18:39 +00:00