[Lazarus] Errors in win32winapi.inc and elsewhere spotted by compiler
Dmitry Boyarintsev
skalogryz.lists at gmail.com
Tue Mar 24 19:11:20 CET 2015
On Tue, Mar 24, 2015 at 2:06 PM, Juha Manninen <juha.manninen62 at gmail.com>
wrote:
> I also added some ToDo items for things I could not fix.
> I would need help for the ToDo items especially in LCL-Win32 code. I
> know there are people here who know that code.
> // ToDo: WinBmp is not initialized at all. Should it be initialized from
> Bmp?
> HasAlpha := (Windows.GetObject(bmp, SizeOf(WinBmp), @WinBmp) <> 0)
>
According to the specs, there's no need for initialization.
https://msdn.microsoft.com/en-us/library/windows/desktop/dd144904%28v=vs.85%29.aspx
It's pure out parameter. (for parameters requiring initialization it would
be _In_ or _In_Out_)
thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150324/4c9bd190/attachment-0003.html>
More information about the Lazarus
mailing list