diff options
| author | sergei <sergei@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-01-25 07:32:39 +0000 |
|---|---|---|
| committer | sergei <sergei@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-01-25 07:32:39 +0000 |
| commit | 3a63f20a426771a2dbf2f4f1f87349753b5e2afd (patch) | |
| tree | 9e2721f50c8866f63b8eb922d8ddbaa7e9f2b144 | |
| parent | 1c48a7794857e1fa693188ea87c589b6ec9f427d (diff) | |
| download | fpc-3a63f20a426771a2dbf2f4f1f87349753b5e2afd.tar.gz | |
* Several functions had their results unassigned, fixed.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16811 3ad0048d-3df7-0310-abae-a5850022a9f2
| -rw-r--r-- | packages/winunits-base/src/commctrl.pp | 4 | ||||
| -rw-r--r-- | packages/winunits-base/src/comserv.pp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/packages/winunits-base/src/commctrl.pp b/packages/winunits-base/src/commctrl.pp index 56d0b2e664..d7905a17ad 100644 --- a/packages/winunits-base/src/commctrl.pp +++ b/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 diff --git a/packages/winunits-base/src/comserv.pp b/packages/winunits-base/src/comserv.pp index 9bf4885c3b..fc0bddf2ea 100644 --- a/packages/winunits-base/src/comserv.pp +++ b/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; |
