This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 9863 for ps


Ignore:
Timestamp:
07/17/11 21:19:33 (13 years ago)
Author:
Jan Wassenberg
Message:

avoid warning when running a second instance and Mahaf is enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/lib/sysdep/os/win/mahaf.cpp

    r9423 r9863  
    348348        if(hAken == INVALID_HANDLE_VALUE)
    349349        {
    350             ENSURE(GetLastError() == ERROR_FILE_NOT_FOUND);
     350            // GetLastError() is ERROR_FILE_NOT_FOUND if the driver isn't running,
     351            // but this is also reached when a handle has already been opened
     352            // (e.g. by a second instance of the same program) - in which case we must
     353            // indicate failure so that clients won't engage in unsynchronized ring 0 operations.
    351354            SetLastError(0);
    352355            return ERR::INVALID_HANDLE; // NOWARN (happens often due to security restrictions)
Note: See TracChangeset for help on using the changeset viewer.