зеркало из https://github.com/github/ruby.git
* dln.c (rb_w32_check_imported): suppress warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d410639a6d
Коммит
abd94c3376
5
dln.c
5
dln.c
|
@ -1212,8 +1212,9 @@ rb_w32_check_imported(HMODULE ext, HMODULE mine)
|
|||
while (piat->u1.Function) {
|
||||
PIMAGE_IMPORT_BY_NAME pii = (PIMAGE_IMPORT_BY_NAME)((char *)ext + (size_t)pint->u1.AddressOfData);
|
||||
static const char prefix[] = "rb_";
|
||||
if (strncmp(pii->Name, prefix, sizeof(prefix) - 1) == 0) {
|
||||
FARPROC addr = GetProcAddress(mine, pii->Name);
|
||||
const char *name = (const char *)pii->Name;
|
||||
if (strncmp(name, prefix, sizeof(prefix) - 1) == 0) {
|
||||
FARPROC addr = GetProcAddress(mine, name);
|
||||
if (addr) return (FARPROC)piat->u1.Function == addr;
|
||||
}
|
||||
piat++;
|
||||
|
|
Загрузка…
Ссылка в новой задаче