Hi,

I submitted this bug report at
https://sourceforge.net/p/mingw-w64/bugs/940/
and later received suggestion to post it to the mailing list,
as the bug tracker is dead, so here it is:

The mingw-w64-headers/include/oleauto.h contains

WINOLEAUTAPI VarDecFromStr(OLECHAR *strIn,LCID lcid,ULONG
dwFlags,DECIMAL *pdecOut);

but the valid prototype of this function
https://docs.microsoft.com/en-us/windows/win32/api/oleauto/nf-oleauto-vardecfromstr)
is

HRESULT VarDecFromStr(
  [in]  LPCOLESTR strIn,
  [in]  LCID      lcid,
  [in]  ULONG     dwFlags,
  [out] DECIMAL   *pdecOut
);

That is. OLECHAR *strIn should be changed to LPCOLESTR to avoid
compile errors like

error: invalid conversion
  from 'LPCOLESTR' {aka 'const wchar_t*'}
  to 'OLECHAR*' {aka 'wchar_t*'} [-fpermissive]


Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to