- ICOPEN icopen;
- HDRVR hdrv;
- WINE_HIC *whic;
-
- /* Well, lParam2 is in fact a LPVIDEO_OPEN_PARMS, but it has the
- * same layout as ICOPEN
- */
- icopen.fccType = 0x63646976; // "vidc" //fccType;
- icopen.fccHandler = fccHandler;
- icopen.dwSize = sizeof(ICOPEN);
- icopen.dwFlags = wMode;
- icopen.pV1Reserved = (void*)filename;
- /* FIXME: do we need to fill out the rest too? */
- hdrv=OpenDriverA((long)&icopen);
- if (!hdrv) return 0;
- whic = (WINE_HIC*)malloc(sizeof(WINE_HIC));
- whic->hdrv = hdrv;
- whic->driverproc= ((DRVR*)hdrv)->DriverProc;
-// whic->private = ICSendMessage((HIC)whic,DRV_OPEN,0,(long)&icopen);
- whic->driverid = ((DRVR*)hdrv)->dwDriverID;
- return (HIC)whic;
+ ICOPEN icopen;
+ HDRVR hdrv;
+ WINE_HIC *whic;
+
+ /* Well, lParam2 is in fact a LPVIDEO_OPEN_PARMS, but it has the
+ * same layout as ICOPEN
+ */
+ icopen.fccType = 0x63646976; // "vidc" //fccType;
+ icopen.fccHandler = fccHandler;
+ icopen.dwSize = sizeof(ICOPEN);
+ icopen.dwFlags = wMode;
+ icopen.pV1Reserved = (void*)filename;
+ /* FIXME: do we need to fill out the rest too? */
+ hdrv=OpenDriverA((long)&icopen);
+ if (!hdrv) return 0;
+ whic = (WINE_HIC*)malloc(sizeof(WINE_HIC));
+ whic->hdrv = hdrv;
+ whic->driverproc= ((DRVR*)hdrv)->DriverProc;
+// whic->private = ICSendMessage((HIC)whic,DRV_OPEN,0,(long)&icopen);
+ whic->driverid = ((DRVR*)hdrv)->dwDriverID;
+ return (HIC)whic;