mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Fix calling convention
* win32/win32.c (get_special_folder): fix calling convention of SHGetPathFromIDListEx, which should be WINAPI. pointed out by @arton at http://twitter.com/arton/status/744884064277016576 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									a30c1f48cf
								
							
						
					
					
						commit
						6e6a8c02af
					
				
					 2 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,9 @@
 | 
			
		|||
Tue Jun 21 00:56:47 2016  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* win32/win32.c (get_special_folder): fix calling convention of
 | 
			
		||||
	  SHGetPathFromIDListEx, which should be WINAPI.  pointed out by
 | 
			
		||||
	  @arton at http://twitter.com/arton/status/744884064277016576
 | 
			
		||||
 | 
			
		||||
Tue Jun 21 00:22:02 2016  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* configure.in, include/ruby/defines.h (RUBY_USE_SETJMPEX):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -436,7 +436,7 @@ get_special_folder(int n, WCHAR *buf, size_t len)
 | 
			
		|||
    LPITEMIDLIST pidl;
 | 
			
		||||
    LPMALLOC alloc;
 | 
			
		||||
    BOOL f = FALSE;
 | 
			
		||||
    typedef BOOL (*get_path_func)(LPITEMIDLIST, WCHAR*, DWORD, int);
 | 
			
		||||
    typedef BOOL (WINAPI *get_path_func)(LPITEMIDLIST, WCHAR*, DWORD, int);
 | 
			
		||||
    static get_path_func func = (get_path_func)-1;
 | 
			
		||||
 | 
			
		||||
    if (func == (get_path_func)-1) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue