http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95e7595
)
wined3d: Guarded to call invalid pointer
author
Anatoly Lyutin
<vostok@etersoft.ru>
Tue, 29 Apr 2008 12:02:25 +0000
(16:02 +0400)
committer
Konstantin Kondratyuk
<kondratyuk@etersoft.ru>
Fri, 2 May 2008 09:34:23 +0000
(13:34 +0400)
dlls/wined3d/context.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/wined3d/context.c
b/dlls/wined3d/context.c
index f185c337506c3c9cc7f8637d063a4ced82fe0a8e..3592dd42c5d50ebc7862b007f17b6aafadb17a8e 100644
(file)
--- a/
dlls/wined3d/context.c
+++ b/
dlls/wined3d/context.c
@@
-982,6
+982,12
@@
void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
context = This->activeContext;
}
+ if(!context)
+ {
+ ERR("The context is nil! Return.\n");
+ return;
+ }
+
/* Activate the opengl context */
if(context != This->activeContext) {
BOOL ret;