--- branches/release-1_0-branch/xvidcore/vfw/src/driverproc.c 2004/03/31 19:10:24 1395 +++ branches/release-1_0-branch/xvidcore/vfw/src/driverproc.c 2004/03/31 19:35:31 1396 @@ -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.2 2004-03-22 22:36:25 edgomez Exp $ + * $Id: driverproc.c,v 1.2.2.1 2004-03-31 19:35:31 edgomez Exp $ * ****************************************************************************/ @@ -43,8 +43,6 @@ return TRUE; } -extern HINSTANCE m_hdll; - /* __declspec(dllexport) */ LRESULT WINAPI DriverProc( DWORD dwDriverId, HDRVR hDriver, @@ -65,7 +63,7 @@ case DRV_OPEN : DPRINTF("DRV_OPEN"); - m_hdll = NULL; + { ICOPEN * icopen = (ICOPEN *)lParam2; @@ -85,6 +83,7 @@ return 0; } + memset(codec, 0, sizeof(CODEC)); codec->status.hDlg = NULL; codec->config.ci_valid = 0;