--- a/drivers/win32/win32.c Mon May 21 16:14:57 2012 +0200
+++ b/drivers/win32/win32.c Mon May 21 16:15:56 2012 +0200
@@ -97,7 +97,7 @@
* @param driver_name String containing driver's dynamic library name
* @return Library handle
*/
-LIB_HANDLE LoadCanDriver(LPCTSTR driver_name)
+LIB_HANDLE LoadCanDriver(LPCSTR driver_name)
{
// driver module handle
LIB_HANDLE handle = NULL;
@@ -105,7 +105,7 @@
#ifndef NOT_USE_DYNAMIC_LOADING
if(handle == NULL)
{
- handle = LoadLibrary(driver_name);
+ handle = LoadLibraryA(driver_name);
}
if (!handle)
--- a/include/win32/canfestival.h Mon May 21 16:14:57 2012 +0200
+++ b/include/win32/canfestival.h Mon May 21 16:15:56 2012 +0200
@@ -32,7 +32,7 @@
typedef HINSTANCE LIB_HANDLE;
UNS8 UnLoadCanDriver(LIB_HANDLE handle);
-LIB_HANDLE LoadCanDriver(LPCTSTR driver_name);
+LIB_HANDLE LoadCanDriver(LPCSTR driver_name);
UNS8 canSend(CAN_PORT port, Message *m);
CAN_PORT canOpen(s_BOARD *board, CO_Data * d);
int canClose(CO_Data * d);