CHAR16 *PcdTempStr;\r
UINTN TempStrSize;\r
\r
- //\r
- // Test Feature Set and Binary Patchable Case\r
- //\r
- if (FeaturePcdGet (PcdWinNtFeatureFlag1)) {\r
- TempStrSize = PatchPcdGet32(PcdWinNtBinaryPatch1) + PatchPcdGet32(PcdWinNtBinaryPatch2);\r
- }\r
- \r
- if (0) {\r
- //\r
- // Test Dynamic and DynamicEx \r
- // (Please add PcdWinNtConsole in "WinNtBusDriver.inf" before enable this code!!!)\r
- //\r
- PcdTempStr = PcdGetPtr (PcdWinNtConsole);\r
- }\r
-\r
- //\r
- // Test Dynamic Set and Dynamic Set Ex\r
- //\r
- PcdSet32 (PcdWinNtDynamicUINT32, 2006);\r
-\r
Status = EFI_UNSUPPORTED;\r
\r
//\r
\r
WinNtDevice->ControllerNameTable = NULL;\r
\r
- WinNtThunk->SPrintf (ComponentName, L"%s", WinNtDevice->WinNtIo.EnvString);\r
+ WinNtThunk->SPrintf (ComponentName, sizeof (ComponentName), L"%s", WinNtDevice->WinNtIo.EnvString);\r
\r
WinNtDevice->DevicePath = WinNtBusCreateDevicePath (\r
ParentDevicePath,\r