< prev index next >
src/jdk.jdwp.agent/windows/native/libjdwp/linker_md.c
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -142,7 +142,19 @@
FreeLibrary(handle);
}
void * dbgsysFindLibraryEntry(void *handle, const char *name)
{
+#if defined(_WIN32) && !defined(_WIN64)
+ void *fn;
+ char decoratedName[32];
+ if (strlen(name) < sizeof(decoratedName) - 1 - 3 - 1) {
+ _snprintf(decoratedName, sizeof(decoratedName), "_%s@16", name);
+
+ fn = GetProcAddress(handle, decoratedName);
+ if (fn != NULL) {
+ return fn;
+ }
+ }
+#endif
return GetProcAddress(handle, name);
}
< prev index next >