diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-28 09:33:02 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-28 09:33:02 +0000 |
commit | 174f03d2a2851d426b57bc6c35d2f08a884ecffc (patch) | |
tree | 43c0cf759fb2faed04fba45166155cdbcdcef1e3 /MdeModulePkg | |
parent | f02d0c0fe9057be143dc5054e90c53d44c4b2edd (diff) | |
download | edk2-platforms-174f03d2a2851d426b57bc6c35d2f08a884ecffc.tar.xz |
fixed one bug to catch the return status.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5582 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c index 3c2b4e1019..a0ec216e07 100644 --- a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c +++ b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c @@ -748,6 +748,11 @@ Mtftp4Start ( }
//
+ // Set initial status.
+ //
+ Token->Status = EFI_NOT_READY;
+
+ //
// Build and send an initial requests
//
if (Operation == EFI_MTFTP4_OPCODE_WRQ) {
@@ -761,16 +766,15 @@ Mtftp4Start ( if (EFI_ERROR (Status)) {
goto ON_ERROR;
}
- //
- // Return immediately for asynchronous operation or poll the
- // instance for synchronous operation.
- //
- Token->Status = EFI_NOT_READY;
if (Token->Event != NULL) {
return EFI_SUCCESS;
}
+ //
+ // Return immediately for asynchronous operation or poll the
+ // instance for synchronous operation.
+ //
while (Token->Status == EFI_NOT_READY) {
This->Poll (This);
}
|