mirror of https://github.com/acidanthera/audk.git
fix potential memory access violation
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11152 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8a2d49964e
commit
d04608758d
|
@ -802,7 +802,7 @@ CallDeviceManager (
|
||||||
//
|
//
|
||||||
if (mNextShowFormId == NETWORK_DEVICE_FORM_ID) {
|
if (mNextShowFormId == NETWORK_DEVICE_FORM_ID) {
|
||||||
String = HiiGetString (HiiHandle, STRING_TOKEN (STR_FORM_NETWORK_DEVICE_TITLE), NULL);
|
String = HiiGetString (HiiHandle, STRING_TOKEN (STR_FORM_NETWORK_DEVICE_TITLE), NULL);
|
||||||
NewStringLen = StrLen(mSelectedMacAddrString);
|
NewStringLen = StrLen(mSelectedMacAddrString) * 2;
|
||||||
NewStringLen += (StrLen(String) + 2) * 2;
|
NewStringLen += (StrLen(String) + 2) * 2;
|
||||||
NewStringTitle = AllocatePool (NewStringLen);
|
NewStringTitle = AllocatePool (NewStringLen);
|
||||||
UnicodeSPrint (NewStringTitle, NewStringLen, L"%s %s", String, mSelectedMacAddrString);
|
UnicodeSPrint (NewStringTitle, NewStringLen, L"%s %s", String, mSelectedMacAddrString);
|
||||||
|
|
Loading…
Reference in New Issue