--- driverproc.c 2005/09/09 11:34:51 1.8 +++ driverproc.c 2008/11/30 17:57:14 1.8.4.2 @@ -19,7 +19,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: driverproc.c,v 1.8 2005/09/09 11:34:51 suxen_drol Exp $ + * $Id: driverproc.c,v 1.8.4.2 2008/11/30 17:57:14 Isibaar Exp $ * ****************************************************************************/ @@ -35,17 +35,17 @@ static int clean_dll_bindings(CODEC* codec); -BOOL WINAPI DllMain( - HANDLE hModule, - DWORD ul_reason_for_call, - LPVOID lpReserved) +INT_PTR WINAPI DllMain( + HANDLE hModule, + DWORD ul_reason_for_call, + LPVOID lpReserved) { g_hInst = (HINSTANCE) hModule; return TRUE; } /* __declspec(dllexport) */ LRESULT WINAPI DriverProc( - DWORD dwDriverId, + DWORD_PTR dwDriverId, HDRVR hDriver, UINT uMsg, LPARAM lParam1, @@ -310,8 +310,8 @@ { DWORD dwDriverId; - dwDriverId = DriverProc(0, 0, DRV_OPEN, 0, 0); - if (dwDriverId != (DWORD)NULL) + dwDriverId = (LRESULT) DriverProc(0, 0, DRV_OPEN, 0, 0); + if (dwDriverId != (LRESULT)NULL) { if (lstrcmpi(lpCmdLine, "about")==0) { DriverProc(dwDriverId, 0, ICM_ABOUT, (LPARAM)GetDesktopWindow(), 0);