Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2013-05-11 12:25:52 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2013-05-18 18:49:06 +0400
commit551082864db1711e3d5c3b598485c51c4ccd1320 (patch)
tree38a1cec2816f7d8d0aee8d37967638b21ea19f34 /src
parent04711ba2eafe3c4e20235a9a03994ec64855d3dc (diff)
Fix possible NULL pointer dereference.
Diffstat (limited to 'src')
-rw-r--r--src/SubPic/DX9SubPic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SubPic/DX9SubPic.cpp b/src/SubPic/DX9SubPic.cpp
index d15fb608d..bc9652c96 100644
--- a/src/SubPic/DX9SubPic.cpp
+++ b/src/SubPic/DX9SubPic.cpp
@@ -219,7 +219,7 @@ STDMETHODIMP CDX9SubPic::Unlock(RECT* pDirtyRect)
}
CComPtr<IDirect3DTexture9> pTexture = (IDirect3DTexture9*)GetObject();
- if (pTexture && !((CRect*)pDirtyRect)->IsRectEmpty()) {
+ if (pTexture && pDirtyRect && !((CRect*)pDirtyRect)->IsRectEmpty()) {
hr = pTexture->AddDirtyRect(&m_rcDirty);
}