CopyMem (NewPool, OldPool, OldSize < NewSize ? OldSize : NewSize);\r
}\r
\r
- gBS->FreePool (OldPool);\r
+ FreePool (OldPool);\r
}\r
\r
return NewPool;\r
Str->Len = Size - sizeof (UINT16);\r
}\r
\r
- gBS->FreePool (AppendStr);\r
+ FreePool (AppendStr);\r
return Str->Str;\r
}\r
\r
//\r
// Shrink pool used for string allocation\r
//\r
- gBS->FreePool (UnpackDevPath);\r
+ FreePool (UnpackDevPath);\r
\r
NewSize = (Str.Len + 1) * sizeof (CHAR16);\r
Str.Str = ReallocatePool (Str.Str, NewSize, NewSize);\r