Ticket #2 (new defect)

Opened 11 months ago

Last modified 11 months ago

wrong wide-string declarations in wininet.d

Reported by: CyberShadow Assigned to: somebody
Priority: critical Milestone:
Component: component1 Version:
Keywords: Cc: thecybershadow@gmail.com

Description

A lot of functions in wininet.d have wrong declarations for string types. For example, RetrieveUrlCacheEntryStream? is declared as:

HANDLE RetrieveUrlCacheEntryStreamW(LPCSTR, LPINTERNET_CACHE_ENTRY_INFOW, PDWORD, BOOL, DWORD);

The first argument should be a wide string (LPCWSTR). Some functions have partially wrong arguments, for example InternetSetCookieW (only the first argument is wrong).

Change History

01/18/08 12:58:51 changed by CyberShadow

  • priority changed from major to critical.

I noticed that the MinGW and Borland's headers are also wrong and contradict the Visual C++ headers. Probably one was inspired from the other or something.

The reference I used was MSDN: http://msdn2.microsoft.com/en-us/library/ms918849.aspx

Raising priority as it makes a large set of WinInet Unicode functions unusable as they are now.