fix(runtime): Use NULL when invalidating a win32 file handle
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Ubuntu Cross to Win64 / Cross Compile with ming64 (1.4.0, ubuntu-latest) (push) Successful in 1m26s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Ubuntu Cross to Win64 / Cross Compile with ming64 (1.4.0, ubuntu-latest) (push) Successful in 1m26s
				
			This commit is contained in:
		
							parent
							
								
									faa2b904ea
								
							
						
					
					
						commit
						ca5d8ad8f0
					
				@ -364,7 +364,7 @@ static void win32WriteBatchInner(const char *file_path, const rt_file_write *wri
 | 
				
			|||||||
        op->state = RT_AIO_STATE_FINISHED;
 | 
					        op->state = RT_AIO_STATE_FINISHED;
 | 
				
			||||||
        *handle   = RT_AIO_INVALID_HANDLE;
 | 
					        *handle   = RT_AIO_INVALID_HANDLE;
 | 
				
			||||||
        CloseHandle(file_handle);
 | 
					        CloseHandle(file_handle);
 | 
				
			||||||
        op->file_handle = INVALID_HANDLE;
 | 
					        op->file_handle = NULL;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* Handle is the index into the ringbuffer + 1 */
 | 
					    /* Handle is the index into the ringbuffer + 1 */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user