mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 13:44:50 +00:00 
			
		
		
		
	WinRT: patched to compile
This commit is contained in:
		
							parent
							
								
									5bcf1d256b
								
							
						
					
					
						commit
						b65763c0c2
					
				| 
						 | 
					@ -146,6 +146,9 @@ has the same problem.)
 | 
				
			||||||
char *
 | 
					char *
 | 
				
			||||||
WIN_LookupAudioDeviceName(const WCHAR *name, const GUID *guid)
 | 
					WIN_LookupAudioDeviceName(const WCHAR *name, const GUID *guid)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					#if __WINRT__
 | 
				
			||||||
 | 
					    return WIN_StringToUTF8(name);  /* No registry access on WinRT/UWP, go with what we've got. */
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
    static const GUID nullguid = { 0 };
 | 
					    static const GUID nullguid = { 0 };
 | 
				
			||||||
    const unsigned char *ptr;
 | 
					    const unsigned char *ptr;
 | 
				
			||||||
    char keystr[128];
 | 
					    char keystr[128];
 | 
				
			||||||
| 
						 | 
					@ -196,6 +199,7 @@ WIN_LookupAudioDeviceName(const WCHAR *name, const GUID *guid)
 | 
				
			||||||
    retval = WIN_StringToUTF8(strw);
 | 
					    retval = WIN_StringToUTF8(strw);
 | 
				
			||||||
    SDL_free(strw);
 | 
					    SDL_free(strw);
 | 
				
			||||||
    return retval ? retval : WIN_StringToUTF8(name);
 | 
					    return retval ? retval : WIN_StringToUTF8(name);
 | 
				
			||||||
 | 
					#endif /* if __WINRT__ / else */
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif /* __WIN32__ || __WINRT__ */
 | 
					#endif /* __WIN32__ || __WINRT__ */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue