Commit a35431a1 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

quartz: Use memcmp instead of strncmp in MPEGSplitter_pre_connect.

header isn't a string and therefore using strncmp doesn't make sense.
parent 89b479c8
...@@ -471,7 +471,7 @@ static HRESULT MPEGSplitter_pre_connect(IPin *iface, IPin *pConnectPin, ALLOCATO ...@@ -471,7 +471,7 @@ static HRESULT MPEGSplitter_pre_connect(IPin *iface, IPin *pConnectPin, ALLOCATO
pos += 4; pos += 4;
/* Skip ID3 v2 tag, if any */ /* Skip ID3 v2 tag, if any */
if (SUCCEEDED(hr) && !strncmp("ID3", (char*)header, 3)) if (SUCCEEDED(hr) && !memcmp("ID3", header, 3))
do { do {
UINT length; UINT length;
hr = IAsyncReader_SyncRead(pPin->pReader, pos, 6, header + 4); hr = IAsyncReader_SyncRead(pPin->pReader, pos, 6, header + 4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment