mirror of
				https://github.com/acidanthera/audk.git
				synced 2025-11-04 05:25:45 +01:00 
			
		
		
		
	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
This commit is contained in:
		
							parent
							
								
									f02d0c0fe9
								
							
						
					
					
						commit
						174f03d2a2
					
				@ -747,6 +747,11 @@ Mtftp4Start (
 | 
				
			|||||||
    goto ON_ERROR;
 | 
					    goto ON_ERROR;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  //
 | 
				
			||||||
 | 
					  // Set initial status.
 | 
				
			||||||
 | 
					  //
 | 
				
			||||||
 | 
					  Token->Status = EFI_NOT_READY;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  //
 | 
					  //
 | 
				
			||||||
  // Build and send an initial requests
 | 
					  // Build and send an initial requests
 | 
				
			||||||
  //
 | 
					  //
 | 
				
			||||||
@ -761,16 +766,15 @@ Mtftp4Start (
 | 
				
			|||||||
  if (EFI_ERROR (Status)) {
 | 
					  if (EFI_ERROR (Status)) {
 | 
				
			||||||
    goto ON_ERROR;
 | 
					    goto ON_ERROR;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  //
 | 
					 | 
				
			||||||
  // Return immediately for asynchronous operation or poll the
 | 
					 | 
				
			||||||
  // instance for synchronous operation.
 | 
					 | 
				
			||||||
  //
 | 
					 | 
				
			||||||
  Token->Status = EFI_NOT_READY;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (Token->Event != NULL) {
 | 
					  if (Token->Event != NULL) {
 | 
				
			||||||
    return EFI_SUCCESS;
 | 
					    return EFI_SUCCESS;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  //
 | 
				
			||||||
 | 
					  // Return immediately for asynchronous operation or poll the
 | 
				
			||||||
 | 
					  // instance for synchronous operation.
 | 
				
			||||||
 | 
					  //
 | 
				
			||||||
  while (Token->Status == EFI_NOT_READY) {
 | 
					  while (Token->Status == EFI_NOT_READY) {
 | 
				
			||||||
    This->Poll (This);
 | 
					    This->Poll (This);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user