<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dlfcn-win32/src, branch v1.3.1</title>
<subtitle>A mirror of https://github.com/dlfcn-win32/dlfcn-win32.git
</subtitle>
<id>https://git.lua4.win/dlfcn-win32/atom?h=v1.3.1</id>
<link rel='self' href='https://git.lua4.win/dlfcn-win32/atom?h=v1.3.1'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/'/>
<updated>2022-03-11T21:50:30+00:00</updated>
<entry>
<title>Replace magic numbers by sdk macros in get_image_section()</title>
<updated>2022-03-11T21:50:30+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2022-03-11T21:50:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=e34fb598ac374b5764ac6cd0f0b7ecdd6df792b0'/>
<id>urn:sha1:e34fb598ac374b5764ac6cd0f0b7ecdd6df792b0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Prefer usage of thread-safe function SetThreadErrorMode() instead of process-global function SetErrorMode()</title>
<updated>2021-12-21T00:09:09+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-12-21T00:09:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=318030d5419b1064941700a1c3c21d7f9bd30149'/>
<id>urn:sha1:318030d5419b1064941700a1c3c21d7f9bd30149</id>
<content type='text'>
Use GetProcAddress() wrapper as SetThreadErrorMode() is not available on
older Windows versions.
</content>
</entry>
<entry>
<title>Try to avoid compile warning: cast between incompatible function types from ‘FARPROC’</title>
<updated>2021-12-21T00:07:19+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-12-21T00:07:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=fe1e475144c895341ffecd8af14b7b1f4d8f4c38'/>
<id>urn:sha1:fe1e475144c895341ffecd8af14b7b1f4d8f4c38</id>
<content type='text'>
warning: cast between incompatible function types from ‘FARPROC’ {aka ‘long long int (*)()’} to ‘BOOL (*)(DWORD,  const CHAR *, struct HINSTANCE__ **)’ {aka ‘int (*)(long unsigned int,  const char *, struct HINSTANCE__ **)’} [-Wcast-function-type]
</content>
</entry>
<entry>
<title>dladdr: const void *addr</title>
<updated>2021-04-09T19:58:09+00:00</updated>
<author>
<name>Michel Zou</name>
<email>xantares09@hotmail.com</email>
</author>
<published>2021-03-15T10:21:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=36b92340d489345ff226930dabd133ba36d3a674'/>
<id>urn:sha1:36b92340d489345ff226930dabd133ba36d3a674</id>
<content type='text'>
on unix the addr argument seems to be const
fix that for consistency
</content>
</entry>
<entry>
<title>Fix noinline for older compiler versions (e.g. Visual Studio 6.0)</title>
<updated>2021-02-03T20:01:24+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-02-03T20:01:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=9e40646cf3a7d0817b2298f915399a128fcb4d27'/>
<id>urn:sha1:9e40646cf3a7d0817b2298f915399a128fcb4d27</id>
<content type='text'>
Visual Studio 6.0 does not support __declspec(noinline) and throw error.

Add checks for compilers which support noinline to prevent compile errors.
</content>
</entry>
<entry>
<title>Define ULONG_PTR for older SDK</title>
<updated>2021-02-03T20:00:56+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-02-03T20:00:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=7da1054564609f3382869714432f54b63812d083'/>
<id>urn:sha1:7da1054564609f3382869714432f54b63812d083</id>
<content type='text'>
If compiling with _WIN32_WINNT target prior 0x0500 then SDK does not define
ULONG_PTR type. Such systems are only 32bit so define it explicitly to
32bit type ULONG.
</content>
</entry>
<entry>
<title>Fix MSVC 14.00 compile warning: warning C4244: '=' : conversion from 'ULONG_PTR' to 'char', possible loss of data</title>
<updated>2021-02-03T20:00:28+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-02-03T20:00:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=d1a0d28f903f9d3eff03f06e299cde5a7998216e'/>
<id>urn:sha1:d1a0d28f903f9d3eff03f06e299cde5a7998216e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add helper function MyGetModuleHandleFromAddress()</title>
<updated>2021-02-03T19:59:58+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-02-03T19:59:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=06fea3fe8b3efe8c79f97fa724f703bc0e25aeef'/>
<id>urn:sha1:06fea3fe8b3efe8c79f97fa724f703bc0e25aeef</id>
<content type='text'>
This function implements calling GetModuleHandleExA() with correct flags to
retrieve hModule from passed address.

To allow compilation also with older compilers and environments (like WDK)
with any _WIN32_WINNT value, retrieve pointer to this function via
GetProcAddress(). And as a fallback implementation use old code via
VirtualQuery() which was there prior commit 8ec5ffef2eca.
</content>
</entry>
<entry>
<title>Fix helper function MyEnumProcessModules()</title>
<updated>2021-02-03T19:59:18+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-02-03T19:59:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=0e9d85a9d03bcedade35cced63ec6b969ab3451e'/>
<id>urn:sha1:0e9d85a9d03bcedade35cced63ec6b969ab3451e</id>
<content type='text'>
Call SetErrorMode(SEM_FAILCRITICALERRORS) prior opening Psapi.dll library
to avoid GUI error messages.

Close Psapi.dll library via FreeLibrary() if symbol was not retrieved to
prevent possible memory leaks.

Try to get K32EnumProcessModules symbol from Kernel32.dll library as it is
preferred way how to call EnumProcessModules() on Windows 7 and newer
versions.

If retrieving EnumProcessModules symbol failed with both methods then do
not try it again on next MyEnumProcessModules() function call.
</content>
</entry>
<entry>
<title>Avoid calling SetLastError() and GetLastError() internally</title>
<updated>2021-02-03T19:58:39+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-02-03T19:58:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=c172ee216cd5d46c1999018e1a3e905eebe3c10c'/>
<id>urn:sha1:c172ee216cd5d46c1999018e1a3e905eebe3c10c</id>
<content type='text'>
There is no need for propagating internal errors via SetLastError() and
GetLastError() calls. Just use additional argument for save_err_str()
function. Also dlfcn API is POSIX and does not use GetLastError().
</content>
</entry>
</feed>
