From c8e0e1114ab2ddbfe0509603c40acd12e6f8c86c Mon Sep 17 00:00:00 2001 From: eban Date: Mon, 26 Mar 2001 05:11:18 +0000 Subject: * ext/Win32API/Win32API.c: remove Init_win32api(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dln.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'dln.c') 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)(); -- cgit v1.2.3