From d44882432b1534c8cfca3057ad59765a949adacc Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 9 Dec 2008 15:35:13 +0000 Subject: Fixes for building on Windows, and some tweaks for testing the CAPI PKCS#11 module. --- src/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/module.c') diff --git a/src/module.c b/src/module.c index 7dec518..b7a715b 100644 --- a/src/module.c +++ b/src/module.c @@ -283,13 +283,13 @@ p11t_module_load(const char *filename) module = LoadLibrary(filename); if(!module) - p11t_msg_fatal("couldn't load library: %s: %s", filename, p11t_msg_lasterr()); + p11t_msg_fatal("couldn't load library: %s: %s", filename, p11t_msg_os()); /* Lookup the appropriate function in the library */ get_function_list = (CK_C_GetFunctionList)GetProcAddress(module, "C_GetFunctionList"); if(!get_function_list) p11t_msg_fatal("C_GetFunctionList: couldn't find function in library: %s: %s", - filename, p11t_msg_lasterr()); + filename, p11t_msg_os()); #else /* !_WIN32 */ -- cgit v1.2.3