DXGL r428 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r427
|
r428
|
r429
>
Date:
18:56, 13 April 2014
Author:
admin
Status:
new
Tags:
Comment:
glClassFactory::LockServer lock count in-class.
Modified paths:
/ddraw/glClassFactory.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glClassFactory.cpp
—
—
@@ -22,8 +22,6 @@
23
23
#include "glutil.h"
24
24
#include "glDirectDrawClipper.h"
25
25
26
-LONG locks;
27
-
28
26
ULONG WINAPI glClassFactory::AddRef()
29
27
{
30
28
TRACE_ENTER(1,14,this);
—
—
@@ -118,8 +116,8 @@
119
117
{
120
118
TRACE_ENTER(2,14,this,22,fLock);
121
119
if(!this) TRACE_RET(HRESULT,23,DDERR_INVALIDOBJECT);
122
- if(fLock) InterlockedIncrement(&locks);
123
- else InterlockedDecrement(&locks);
120
+ if(fLock) InterlockedIncrement(&lockcount);
121
+ else InterlockedDecrement(&lockcount);
124
122
TRACE_EXIT(23,S_OK);
125
123
return S_OK;
126
124
}
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version