From: SourceForge.net <no...@so...> - 2003-05-02 03:16:16
|
Bugs item #671964, was opened at 2003-01-22 08:10 Message generated for change (Comment added) made by dannysmith You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=671964&group_id=2435 Category: w32api Group: None Status: Open Resolution: None Priority: 5 Submitted By: Marcel Telka (telka) Assigned to: Earnie Boyd (earnie) Summary: winddk.h: pack 1 for structures Initial Comment: Some structures in winddk.h requires "#pragma pack(push,1)" and "#pragma pack(pop)" around declarations. This is true at least for "struct _IRP" (lines 975 - 1029 in winddk.h). ---------------------------------------------------------------------- >Comment By: Danny Smith (dannysmith) Date: 2003-05-02 15:16 Message: Logged In: YES user_id=11494 Marcel Are you still sure about _IRP? I think the change of KIRQL to UCHAR may have fixed the allignmnent problem in _IRP. If not can you point out where offsets differ? Danny ---------------------------------------------------------------------- Comment By: Numa Toretolero (numit_or) Date: 2003-04-07 07:11 Message: Logged In: YES user_id=751046 Sorry, but I did not find a category for this bug. In the line 130 of winddk.h (from Win32api-2.2.tar.gz), there is the following declaration: typedef ULONG KIRQL, *PKIRQL; This is not correct, and causes errors when you use the IRP structure. So, when you use macros as: IoGetCurrentIrpStackLocation(Irp) you will get a bad pointer to the stack location, because KIRQL is really CHAR type. The correct declaration is: typedef UCHAR KIRQL; typedef KIRQL *PKIRQL greetings numit_or num...@ca... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=671964&group_id=2435 |