Web lists-archives.com

Re: [Mingw-users] Possible error in ntddstor.h




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 19/07/16 22:30, Anton Shepelev wrote:
> [...] I am having this error:
> 
> macro "__IOCTL_STORAGE_" requires 3 arguments, but only 2 given

Okay, I can reproduce this.

> in the file
> 
> MinGW\include\ddk\ntddstor.h
> 
> which has:
> 
> #define __IOCTL_STORAGE_(FN,M,A)
> CTL_CODE(IOCTL_STORAGE_BASE,(FN),(M),(A)) [...] #define
> IOCTL_STORAGE_EJECT_MEDIA
> __IOCTL_STORAGE_(0x0202,__FILE_RD_BUFFERED)
> 
> i.e. the macro definition does not match its invocation.

It would, if __FILE_RD_BUFFERED was appropriately expanded, to match
*its* definition, in <ddk/winddk.h>:

  #define __FILE_RD_BUFFERED  METHOD_BUFFERED, FILE_READ_ACCESS

Alas, the C preprocessor doesn't expand this macro in time for it to
have the desired effect.

> Is it an error in MinGW?

Yes, (specific to w32api-3.18), and it affects rather more than just
this one case.  Please file a formal bug report, on the bug tracker,
so that I have an appropriately attributable point of reference for
the necessary follow up.

- -- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJXj1vjAAoJEMCtNsY0flo/Hg4P/RSu38y9IT7QBNjVgIQB7pzt
d8ZrKiUtVdIFVoRmUgusf8ZwM63pxMFZ8FyjxXaS4omlolcNIpIBzGaQjimY0X75
oxRkCemks5T1WT0gyxMqFMZtoQosNvp11sCg8d1/PIbtJcnMMjDTjudOaWC0Ahj0
WDLx7NF83vM9mG6pIQas3PODEPECFAMLzlqDIJK1Vxx5RCS66PUksiWJn9df05HN
18EyGFfQhO+nt/1TDtNvNvp9Q+66jZfXg295n0FC6zUZXksQnhroJjt8QeHfzbrD
eK88wFjgCTfq8VoI8pVfQ9Czmt8h9+oZzuiVUCusnMGHhEJvETFynqkjHv6TSgma
3y8SI57/qUTOakqeOj0GH2PZhZ8FJQyAmEdbdin3pxWr/8xqmfN3QY+sdeH3IFUg
UYKYXKR0aFXLmQHw2wpSk0e96MRhZGd+884TEHQItJNZyOrA0JlloOJbhvAgjJn9
setMvNwWCVfcMBMIDbOu7szc0aL3MoqTipnjEEwlQFd7bD8ONaDnApjDhbCRH+W7
gm6jTXXahwiZ0HlLDyIo9pwBg9Chghpw8cNCO+Szmz+CiHtTkdoB1w/SWATfIEU4
7XI27183t/UVrxYUwNCplnHpxSnMiUROkDW9MtYW+frz7cuvSAbjyIZv8kt62TK7
+YkVqbR/vHoe9O3txygf
=TI3z
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe