Win32:
authorChristian Taedcke <hacking@taedcke.com>
Mon, 21 May 2012 16:15:56 +0200
changeset 723 c33da109a4c8
parent 722 6782c330f48c
child 724 1445f32c4b2d
Win32:
- changed parameter type of LoadCanDriver from TCHAR to char
drivers/win32/win32.c
include/win32/canfestival.h
--- 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);