bagder/c-ares — pull request #17 by pixelxeno (2014-06-21 00:49:54+00:00)
Title: Fixing LoadLibrary in the case the application is using UNICODE.

The current code is assuming the library is compiled and used in ANSI, by always passing an ANSI string to LoadLibrary. It means that if the library is in fact compiled in UNICODE, the LoadLibrary call will assume you're passing a widechar string, and will ultimately fail.

This commit fixes it by forcing the usage of the UNICODE version of the API, and ignoring the compilation settings of the library.

This is mostly relevant if the library is compiled statically within another application.