View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0032369 | Lazarus | Other | public | 2017-09-03 17:29 | 2017-09-03 22:12 |
Reporter | Miloš | Assigned To | Ondrej Pokorny | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | duplicate | ||
OS | all | ||||
Product Version | 1.8RC3 | ||||
Summary | 0032369: Declare out parameters as out, no var | ||||
Description | This is declaration of BlockWrite: Procedure BlockWrite(var f:File;const Buf;Count:Int64;var Result:Int64); IMHO, correct declaration is: Procedure BlockWrite(var f:File;const Buf;Count:Int64;out Result:Int64); Is any reason for this declaration? There are more declaration as this in FPC. Problem of this declaration is this: mainform.pp(201,54) Hint: Local variable "FindData" does not seem to be initialized This message is from declaration IShellLinkA.GetPath: function GetPath(pszFile:LPSTR; cch:longint;var pfd:WIN32_FIND_DATA; fFlags:DWORD):HRESULT;StdCall; I think that correct is: function GetPath(pszFile:LPSTR; cch:longint;out pfd:WIN32_FIND_DATA; fFlags:DWORD):HRESULT;StdCall; | ||||
Tags | No tags attached. | ||||
Fixed in Revision | |||||
LazTarget | - | ||||
Widgetset | |||||
Attached Files |
|
duplicate of | 0029946 | resolved | Marco van de Voort | FPC | GetTextExtentPoint32W() declaration |
related to | 0031527 | new | Lazarus | var/out winapi parameters: GetCursorPos, GetCaretPos, GetWindowRect |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-09-03 17:29 | Miloš | New Issue | |
2017-09-03 22:10 | Ondrej Pokorny | LazTarget | => - |
2017-09-03 22:10 | Ondrej Pokorny | Relationship added | duplicate of 0029946 |
2017-09-03 22:10 | Ondrej Pokorny | Status | new => resolved |
2017-09-03 22:10 | Ondrej Pokorny | Resolution | open => duplicate |
2017-09-03 22:10 | Ondrej Pokorny | Assigned To | => Ondrej Pokorny |
2017-09-03 22:11 | Ondrej Pokorny | Relationship added | related to 0031527 |
2017-09-03 22:12 | Ondrej Pokorny | Note Added: 0102623 |