Browse Source

* Several functions had their results unassigned, fixed.

git-svn-id: trunk@16811 -
sergei 14 years ago
parent
commit
2b6fea065d
2 changed files with 6 additions and 6 deletions
  1. 2 2
      packages/winunits-base/src/commctrl.pp
  2. 4 4
      packages/winunits-base/src/comserv.pp

+ 2 - 2
packages/winunits-base/src/commctrl.pp

@@ -12003,7 +12003,7 @@ end;
 function TreeView_GetRoot(hwnd:hwnd) : HTREEITEM;inline;
 
 begin
-  TreeView_GetNextItem(hwnd, NIL,  TVGN_ROOT);
+  Result:=TreeView_GetNextItem(hwnd, NIL,  TVGN_ROOT);
 end;
 
 // Macro 177
@@ -12012,7 +12012,7 @@ end;
 
 function TreeView_GetLastVisible(hwnd:hwnd) : HTREEITEM;inline;
 begin
-  TreeView_GetNextItem(hwnd, NIL,  TVGN_LASTVISIBLE)
+  Result:=TreeView_GetNextItem(hwnd, NIL,  TVGN_LASTVISIBLE)
 end;
 
 // Macro 178

+ 4 - 4
packages/winunits-base/src/comserv.pp

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