Null PhysFS handle after closing
This commit is contained in:
		
							parent
							
								
									0253b6ed2b
								
							
						
					
					
						commit
						4a945f8d6c
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -706,6 +706,8 @@ static int SDL_RWopsClose(SDL_RWops *ops)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	int result = PHYSFS_close(f);
 | 
						int result = PHYSFS_close(f);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						f = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return (result != 0) ? 0 : -1;
 | 
						return (result != 0) ? 0 : -1;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue