|
@@ -219,17 +219,17 @@ end;
|
|
function TComServer.CountObject(Created: Boolean): Integer;
|
|
function TComServer.CountObject(Created: Boolean): Integer;
|
|
begin
|
|
begin
|
|
if Created then
|
|
if Created then
|
|
- InterLockedIncrement(fCountObject)
|
|
|
|
|
|
+ Result:=InterLockedIncrement(fCountObject)
|
|
else
|
|
else
|
|
- InterLockedDecrement(fCountObject);
|
|
|
|
|
|
+ Result:=InterLockedDecrement(fCountObject);
|
|
end;
|
|
end;
|
|
|
|
|
|
function TComServer.CountFactory(Created: Boolean): Integer;
|
|
function TComServer.CountFactory(Created: Boolean): Integer;
|
|
begin
|
|
begin
|
|
if Created then
|
|
if Created then
|
|
- InterLockedIncrement(fCountFactory)
|
|
|
|
|
|
+ Result:=InterLockedIncrement(fCountFactory)
|
|
else
|
|
else
|
|
- InterLockedDecrement(fCountFactory);
|
|
|
|
|
|
+ Result:=InterLockedDecrement(fCountFactory);
|
|
end;
|
|
end;
|
|
|
|
|
|
function TComServer.GetHelpFileName: string;
|
|
function TComServer.GetHelpFileName: string;
|