[Registry] Minor source cleanup
This commit is contained in:
		
							parent
							
								
									f1b49d1d81
								
							
						
					
					
						commit
						0b4e1f79bc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -2,7 +2,7 @@ const child_process = require('child_process'); | |||
| const { join } = require('path'); | ||||
| 
 | ||||
| const sr = process.env.SystemRoot; | ||||
| const regExe = join(sr || '', sr ? 'System32' : '', 'reg.exe'); // %SystemRoot%\System32\reg.exe OR reg.exe if SR is undefined
 | ||||
| const regExe = sr ? join(sr, 'System32', 'reg.exe') : 'reg.exe'; // %SystemRoot%\System32\reg.exe OR reg.exe if SR is undefined
 | ||||
| 
 | ||||
| 
 | ||||
| const spawn = (args, callback) => { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue