mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 07:44:48 +00:00 
			
		
		
		
	use explicit GetModuleFileNameW
This commit is contained in:
		
							parent
							
								
									de711e1685
								
							
						
					
					
						commit
						009a0ff95f
					
				| 
						 | 
				
			
			@ -51,7 +51,7 @@ SDL_GetBasePath(void)
 | 
			
		|||
 | 
			
		||||
        path = (WCHAR *) ptr;
 | 
			
		||||
 | 
			
		||||
        len = GetModuleFileName(NULL, path, buflen);
 | 
			
		||||
        len = GetModuleFileNameW(NULL, path, buflen);
 | 
			
		||||
        /* if it truncated, then len >= buflen - 1 */
 | 
			
		||||
        /* if there was enough room (or failure), len < buflen - 1 */
 | 
			
		||||
        if (len < buflen - 1) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue