Bug 23125 – Missing const in IIDFromString() in core.sys.windows.objbase.d

Status
NEW
Severity
minor
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2022-05-19T10:05:54Z
Last change time
2024-12-07T13:42:04Z
Assigned to
No Owner
Creator
David Sansom
Moved to GitHub: dmd#17447 →

Comments

Comment #0 by info — 2022-05-19T10:05:54Z
DMD 2.099.0 on Windows 10 In core.sys.windows.objbase.d HRESULT IIDFromString(LPOLESTR, LPIID); From Win32 SDK (10.0.19041.0), combaseapi.h file dated 1-Dec-20: _Check_return_ WINOLEAPI IIDFromString( _In_ LPCOLESTR lpsz, _Out_ LPIID lpiid ); https://docs.microsoft.com/en-us/windows/win32/api/combaseapi/nf-combaseapi-iidfromstring The D implementation has lost the const on the first parameter (LPOLESTR vs LPCOLESTR). This may also be true of other function declarations, but I haven't checked.
Comment #1 by robert.schadek — 2024-12-07T13:42:04Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17447 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB