Skip to content

Commit

Permalink
Disabled assert that no longer works correctly on Visual Studio 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
benstone committed Jun 5, 2022
1 parent 22da09e commit c476635
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kauai/SRC/MEMWIN.CPP
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ void AssertPvCb(void *pv, long cb)
{
if (vcactSuspendCheckPointers == 0 && cb != 0)
{
AssertVar(!IsBadWritePtr(pv, cb), "no write access to ptr", &pv);
// This assert has been disabled because AssertPvCb is called on pointers to
// globals which were previously read/write but are now read-only.

//AssertVar(!IsBadWritePtr(pv, cb), "no write access to ptr", &pv);
// I (ShonK) am assuming that write access implies read access for
// memory, so it would just be a waste of time to call this.
// AssertVar(!IsBadReadPtr(pv, cb), "no read access to ptr", &pv);
Expand Down

0 comments on commit c476635

Please sign in to comment.