drivers/win32/win32.c
changeset 739 4faa0bb578e0
parent 723 c33da109a4c8
child 773 c10def4bfbde
--- a/drivers/win32/win32.c	Wed Jun 13 19:07:41 2012 +0200
+++ b/drivers/win32/win32.c	Wed Jun 13 19:08:58 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)