View Issue Details

IDProjectCategoryView StatusLast Update
0035203FPCRTLpublic2019-03-08 15:47
Reporter440bxAssigned ToSven Barth 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platform32 and 64bitOSWindowsOS Versionall
Product Version3.0.4Product Build 
Target VersionFixed in Version3.3.1 
Summary0035203: the constant TLS_OUT_OF_INDEXES should be included in the Windows unit.
DescriptionTLS_OUT_OF_INDEXES may be returned by the TlsAlloc API. The TlsAlloc API is part of the Windows unit but TLS_OUT_OF_INDEXES is not.

Currently TLS_OUT_OF_INDEXES is found in JwaWinbase.pas but, it doesn't really make much sense to have to include another unit just to get a result constant of an API found in the Windows unit.

Steps To Reproducecreate a program that "uses Windows;" call TlsAlloc and compare the returned index to TLS_OUT_OF_INDEXES. The program won't compile unless JwaWinbase is also in the uses clause.
TagsNo tags attached.
Fixed in Revision41635
FPCOldBugId
FPCTarget
Attached Files

Activities

Sven Barth

2019-03-08 15:47

manager   ~0114711

Please test and close if okay.

Issue History

Date Modified Username Field Change
2019-03-08 01:19 440bx New Issue
2019-03-08 15:47 Sven Barth Fixed in Revision => 41635
2019-03-08 15:47 Sven Barth Note Added: 0114711
2019-03-08 15:47 Sven Barth Status new => resolved
2019-03-08 15:47 Sven Barth Fixed in Version => 3.3.1
2019-03-08 15:47 Sven Barth Resolution open => fixed
2019-03-08 15:47 Sven Barth Assigned To => Sven Barth