Commit Graph

114 Commits

Author SHA1 Message Date
Joachim Bauch 583e1b4a93 Fixed warning about unreferenced parameters. 2015-12-20 21:34:14 +01:00
Joachim Bauch bc04853584 Add some checks to prevent overruns on broken input. 2015-12-20 21:26:53 +01:00
Joachim Bauch 9df6e7dc93 Add more error checking of return values. 2015-12-20 21:26:53 +01:00
Joachim Bauch f02a8e6a38 Merge pull request #30 from kost/fix-deprecated-wcsnicmp
Use _wcsnicmp instead of wcsnicmp
2015-10-22 15:54:08 +02:00
Vlatko Kosturjak 71643ae62b Use _wcsnicmp instead of wcsnicmp
"These POSIX functions are deprecated. Use the ISO C++ conformant"
https://msdn.microsoft.com/en-us/library/ms235324.aspx
2015-10-18 11:13:24 +02:00
Joachim Bauch d19707369a Avoid (re-)allocations when searching for named resources.
Also add tests to load resources by name.
2015-08-23 00:22:42 +02:00
Joachim Bauch 8d5dbf39e8 Show AppVeyor status of master branch. 2015-08-23 00:02:04 +02:00
Joachim Bauch 62e357e515 Added information about build status. 2015-08-22 23:56:52 +02:00
Joachim Bauch b4bf2f7c4a Don't disable warnings about conversions. 2015-08-22 23:53:27 +02:00
Joachim Bauch 422f918c33 Declare variables at start of function. 2015-08-22 23:53:27 +02:00
Joachim Bauch a13ad18e11 Added AppVeyor CI integration. 2015-08-22 23:53:27 +02:00
Joachim Bauch 8c3d253325 Support building with cmake. 2015-08-22 01:00:13 +02:00
Joachim Bauch 70c4977019 Switch to container-based infrastructure. 2015-08-22 00:18:37 +02:00
Joachim Bauch 5a0c512885 Revert 78330cd2f1, package names don't match platform. 2015-08-22 00:02:25 +02:00
Joachim Bauch 78330cd2f1 Simplify package installation. 2015-08-21 23:59:29 +02:00
Joachim Bauch db9c2389f2 Fix compilation of tests with UNICODE defined. 2015-08-21 23:57:15 +02:00
Joachim Bauch 83899ac7f7 Use DWORD directly to avoid cast. 2015-08-21 22:26:50 +02:00
Joachim Bauch 6276f4426d Support imports by ordinal value.
Code based on pull-request #28.
2015-08-21 22:19:28 +02:00
Joachim Bauch e5d42852de Merge pull request #26 from CoolOppo/patch-1
Rename readme.txt to readme.rst
2015-04-07 09:47:41 +02:00
CoolOppo 48d3c5a7f6 Rename readme.txt to readme.rst
Makes GitHub actually render the file correctly 😒
2015-04-06 15:39:48 -04:00
Joachim Bauch 82b11d57db Call "VirtualFree" before setting error (fixes #23). 2015-03-13 16:56:02 +01:00
Joachim Bauch 0ce2454fc3 Merge pull request #24 from Fr0sT-Brutal/patch-1
Zero the memory allocated in the heap
2015-03-13 16:47:51 +01:00
Fr0sT-Brutal 89e02fcd9e Zero the memory allocated in the heap
Using HEAP_ZERO_MEMORY parameter of HeapAlloc function we can fill all the struct contents with zeros thus removing possible bugs with uninitialized members and slightly shortening/speeding up the code
2015-03-12 20:11:05 +03:00
Joachim Bauch dc173cad6d Disable alignment of 1000 bytes for now, failing in Travis. 2015-03-01 01:57:11 +01:00
Joachim Bauch d9dc0b0270 Setup additional environment flags for wine. 2015-03-01 01:16:33 +01:00
Joachim Bauch 31cbe89bfe Run tests before checking samples manually. 2015-03-01 01:08:48 +01:00
Joachim Bauch 2da44d00e9 Run more tests with sample DLLs. 2015-03-01 01:04:17 +01:00
Joachim Bauch 36574a5638 Handle case where resource to load is NULL. 2015-03-01 00:32:38 +01:00
Joachim Bauch 463447c1ed Reduced scope of variable. 2015-03-01 00:04:38 +01:00
Joachim Bauch d321abf8fa Added more error handling, changed boolean variables to "BOOL", bail our early from functions where possible. 2015-02-28 23:59:06 +01:00
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 927bd2a9f0 Link using "g++" to get reloc information. 2015-02-27 01:34:33 +01:00
Joachim Bauch dd5e818dfc Need to specify build matrix differently. 2015-02-27 00:56:39 +01:00
Joachim Bauch 4c08d8eb92 Also build UNICODE versions. 2015-02-27 00:55:13 +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
Joachim Bauch 3422b5791c Show build status. 2015-02-27 00:20:35 +01:00
Joachim Bauch 52b0379749 Added travis configuration. 2015-02-27 00:05:11 +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 b8125d0a65 Compile everything with "g++" and link statically. v0_0_4 2014-09-21 14:24:44 +02:00
Joachim Bauch bb736dc160 Added explicit casts. 2014-09-21 14:19:36 +02:00
Joachim Bauch da78edc39b Use markdown readme. 2014-09-21 14:14:21 +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