fix: crash parsing CLSID in shell.readShortcutLink() (#45195)
		
	* fix: crash parsing CLSID in shell.readShortcutLink * fix: ignore clsid if it could not be set
This commit is contained in:
		
					parent
					
						
							
								4629e449a9
							
						
					
				
			
			
				commit
				
					
						ae56a03e33
					
				
			
		
					 3 changed files with 43 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -163,7 +163,8 @@ v8::Local<v8::Value> ReadShortcutLink(gin_helper::ErrorThrower thrower,
 | 
			
		|||
  options.Set("icon", properties.icon);
 | 
			
		||||
  options.Set("iconIndex", properties.icon_index);
 | 
			
		||||
  options.Set("appUserModelId", properties.app_id);
 | 
			
		||||
  options.Set("toastActivatorClsid", properties.toast_activator_clsid);
 | 
			
		||||
  if (properties.options & ShortcutProperties::PROPERTIES_TOAST_ACTIVATOR_CLSID)
 | 
			
		||||
    options.Set("toastActivatorClsid", properties.toast_activator_clsid);
 | 
			
		||||
  return gin::ConvertToV8(thrower.isolate(), options);
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue