You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling a source file which includes wdm.h from this project using GCC 7.3, it warns about:
km/wdm.h: In function ‘IoGetRemainingStackSize’:
km/wdm.h: function returns address of local variable [-Wreturn-local-addr]
return((ULONG_PTR)(&Top) - Bottom );
According to msdn, it should return Top - Bottom instead of &Top - Bottom.
The text was updated successfully, but these errors were encountered:
Using &Top takes into account the current stack location where Top and Bottom variables are currently located.
Also remember that these are the official windows headers, so if you have complaints about them, you should send some feedback somewhere on their github (https://github.com/microsoft)
These headers have just been dumped here by tpn.
When compiling a source file which includes wdm.h from this project using GCC 7.3, it warns about:
According to msdn, it should return
Top - Bottom
instead of&Top - Bottom
.The text was updated successfully, but these errors were encountered: