mirror of
				https://github.com/pbatard/rufus.git
				synced 2024-08-14 23:57:05 +00:00 
			
		
		
		
	[perf] Hint compiler to inline compute strlen
Add const modifier to buffers - better hint for compiler to inline buffer size instead of computing strlen in runtime.
This commit is contained in:
		
							parent
							
								
									09cb8aceba
								
							
						
					
					
						commit
						f4b006bc0c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -250,8 +250,8 @@ static void ToValidLabel(char* Label, BOOL bFAT) | |||
| { | ||||
| 	size_t i, j, k; | ||||
| 	BOOL found; | ||||
| 	WCHAR unauthorized[] = L"*?,;:/\\|+=<>[]\""; | ||||
| 	WCHAR to_underscore[] = L"\t."; | ||||
| 	const WCHAR unauthorized[] = L"*?,;:/\\|+=<>[]\""; | ||||
| 	const WCHAR to_underscore[] = L"\t."; | ||||
| 	WCHAR *wLabel = utf8_to_wchar(Label); | ||||
| 
 | ||||
| 	if (wLabel == NULL) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue