Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c13ae562
Commit
c13ae562
authored
Feb 03, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a check for icinfo->fccType in DRV_OPEN message handler of builtin
video codecs.
parent
de60d1e3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
1 deletion
+17
-1
iccvid.c
dlls/iccvid/iccvid.c
+7
-0
msrle32.c
dlls/msrle32/msrle32.c
+2
-0
msvideo1.c
dlls/msvidc32/msvideo1.c
+7
-0
msvideo_main.c
dlls/msvideo/msvideo_main.c
+1
-1
No files found.
dlls/iccvid/iccvid.c
View file @
c13ae562
...
@@ -961,7 +961,13 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
...
@@ -961,7 +961,13 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
return
0
;
return
0
;
case
DRV_OPEN
:
case
DRV_OPEN
:
{
ICINFO
*
icinfo
=
(
ICINFO
*
)
lParam2
;
TRACE
(
"Opened
\n
"
);
TRACE
(
"Opened
\n
"
);
if
(
icinfo
&&
icinfo
->
fccType
!=
ICTYPE_VIDEO
)
return
0
;
info
=
ICCVID_Alloc
(
sizeof
(
ICCVID_Info
),
1
);
info
=
ICCVID_Alloc
(
sizeof
(
ICCVID_Info
),
1
);
if
(
info
)
if
(
info
)
{
{
...
@@ -969,6 +975,7 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
...
@@ -969,6 +975,7 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
info
->
cvinfo
=
NULL
;
info
->
cvinfo
=
NULL
;
}
}
return
(
LRESULT
)
info
;
return
(
LRESULT
)
info
;
}
case
ICM_GETINFO
:
case
ICM_GETINFO
:
return
ICCVID_GetInfo
(
info
,
(
ICINFO
*
)
lParam1
,
(
DWORD
)
lParam2
);
return
ICCVID_GetInfo
(
info
,
(
ICINFO
*
)
lParam1
,
(
DWORD
)
lParam2
);
...
...
dlls/msrle32/msrle32.c
View file @
c13ae562
...
@@ -1099,6 +1099,8 @@ static CodecInfo* Open(LPICOPEN icinfo)
...
@@ -1099,6 +1099,8 @@ static CodecInfo* Open(LPICOPEN icinfo)
return
(
LPVOID
)
0xFFFF0000
;
return
(
LPVOID
)
0xFFFF0000
;
}
}
if
(
icinfo
->
fccType
!=
ICTYPE_VIDEO
)
return
NULL
;
TRACE
(
"(%p = {%lu,0x%08lX(%4.4s),0x%08lX(%4.4s),0x%lX,0x%lX,...})
\n
"
,
icinfo
,
TRACE
(
"(%p = {%lu,0x%08lX(%4.4s),0x%08lX(%4.4s),0x%lX,0x%lX,...})
\n
"
,
icinfo
,
icinfo
->
dwSize
,
icinfo
->
fccType
,
(
char
*
)
&
icinfo
->
fccType
,
icinfo
->
dwSize
,
icinfo
->
fccType
,
(
char
*
)
&
icinfo
->
fccType
,
icinfo
->
fccHandler
,
(
char
*
)
&
icinfo
->
fccHandler
,
icinfo
->
fccHandler
,
(
char
*
)
&
icinfo
->
fccHandler
,
...
...
dlls/msvidc32/msvideo1.c
View file @
c13ae562
...
@@ -497,7 +497,13 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
...
@@ -497,7 +497,13 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
break
;
break
;
case
DRV_OPEN
:
case
DRV_OPEN
:
{
ICINFO
*
icinfo
=
(
ICINFO
*
)
lParam2
;
TRACE
(
"Opened
\n
"
);
TRACE
(
"Opened
\n
"
);
if
(
icinfo
&&
icinfo
->
fccType
!=
ICTYPE_VIDEO
)
return
0
;
info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
Msvideo1Context
)
);
info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
Msvideo1Context
)
);
if
(
info
)
if
(
info
)
{
{
...
@@ -506,6 +512,7 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
...
@@ -506,6 +512,7 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
}
}
r
=
(
LRESULT
)
info
;
r
=
(
LRESULT
)
info
;
break
;
break
;
}
case
ICM_GETINFO
:
case
ICM_GETINFO
:
r
=
CRAM_GetInfo
(
info
,
(
ICINFO
*
)
lParam1
,
(
DWORD
)
lParam2
);
r
=
CRAM_GetInfo
(
info
,
(
ICINFO
*
)
lParam1
,
(
DWORD
)
lParam2
);
...
...
dlls/msvideo/msvideo_main.c
View file @
c13ae562
...
@@ -400,7 +400,7 @@ HIC MSVIDEO_OpenFunction(DWORD fccType, DWORD fccHandler, UINT wMode,
...
@@ -400,7 +400,7 @@ HIC MSVIDEO_OpenFunction(DWORD fccType, DWORD fccHandler, UINT wMode,
icopen
.
dwSize
=
sizeof
(
ICOPEN
);
icopen
.
dwSize
=
sizeof
(
ICOPEN
);
icopen
.
fccType
=
fccType
;
icopen
.
fccType
=
fccType
;
icopen
.
fccHandler
=
fccHandler
;
icopen
.
fccHandler
=
fccHandler
;
icopen
.
dwVersion
=
0x00001000
;
/* FIXME */
icopen
.
dwVersion
=
ICVERSION
;
icopen
.
dwFlags
=
wMode
;
icopen
.
dwFlags
=
wMode
;
icopen
.
dwError
=
0
;
icopen
.
dwError
=
0
;
icopen
.
pV1Reserved
=
NULL
;
icopen
.
pV1Reserved
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment