summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-26 05:11:18 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-26 05:11:18 +0000
commitc8e0e1114ab2ddbfe0509603c40acd12e6f8c86c (patch)
tree8d7a6b7bbd08348d4f43b8c6a9f592f36199c88b /dln.c
parent9c33e4e6b42c87ff51f41d1497c0056c90aae02b (diff)
* ext/Win32API/Win32API.c: remove Init_win32api().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dln.c b/dln.c
index 11142275d2..127ceabada 100644
--- a/dln.c
+++ b/dln.c
@@ -1234,13 +1234,11 @@ dln_load(file)
/* Load file */
if ((handle =
LoadLibraryExA(winfile, NULL, LOAD_WITH_ALTERED_SEARCH_PATH)) == NULL) {
- printf("LoadLibraryExA: %s\n", winfile);
goto failed;
}
if ((init_fct = (void(*)())GetProcAddress(handle, buf)) == NULL) {
- printf("GetProcAddress %s\n", buf);
- goto failed;
+ rb_loaderror("%s - %s\n%s", dln_strerror(), buf, file);
}
/* Call the init code */
(*init_fct)();