RefRefine soma code to make code run safely.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10885 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10
2010-09-17 10:42:10 +00:00
parent 36b4e01a25
commit 24115e4492
14 changed files with 507 additions and 170 deletions

View File

@@ -137,7 +137,7 @@ SerialPortWrite (
Result = NumberOfBytes;
while (NumberOfBytes--) {
while ((NumberOfBytes--) != 0) {
//
// Wait for the serail port to be ready.
//
@@ -178,7 +178,7 @@ SerialPortRead (
Result = NumberOfBytes;
while (NumberOfBytes--) {
while ((NumberOfBytes--) != 0) {
//
// Wait for the serail port to be ready.
//