mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* dln.c (rb_w32_check_imported): workaround for VC6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
db6099161b
commit
b45f04a66f
3 changed files with 7 additions and 3 deletions
2
dln.c
2
dln.c
|
@ -1210,7 +1210,7 @@ rb_w32_check_imported(HMODULE ext, HMODULE mine)
|
|||
PIMAGE_THUNK_DATA pint = (PIMAGE_THUNK_DATA)((char *)ext + desc->Characteristics);
|
||||
PIMAGE_THUNK_DATA piat = (PIMAGE_THUNK_DATA)((char *)ext + desc->FirstThunk);
|
||||
while (piat->u1.Function) {
|
||||
PIMAGE_IMPORT_BY_NAME pii = (PIMAGE_IMPORT_BY_NAME)((char *)ext + pint->u1.AddressOfData);
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue