[edk2] suggestion for safeopenprotocollib - keep open count

Subject: [edk2] suggestion for safeopenprotocollib - keep open count

From: "David F." <df7729@gmail.com>

To: "edk2-devel@lists.sourceforge.net" <edk2-devel@lists.sourceforge.net>

Date: 2013-09-05 02:34:25

  • 2013-09-05 02:34:25  "David F."   [edk2] suggestion for safeopenprotocollib - keep open count
Suggestion:

Instead of :
if (OpenProtocolFindIt (Handle, Protocol) != NULL) {
return NULL;
}

Have a counter and return the existing safe handle already open.

On Close of course would reduce the counter...