[前][次][番号順一覧][スレッド一覧]

ruby-changes:43399

From: nobu <ko1@a...>
Date: Tue, 21 Jun 2016 00:56:54 +0900 (JST)
Subject: [ruby-changes:43399] nobu:r55473 (trunk): Fix calling convention

nobu	2016-06-21 00:56:49 +0900 (Tue, 21 Jun 2016)

  New Revision: 55473

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55473

  Log:
    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

  Modified files:
    trunk/ChangeLog
    trunk/win32/win32.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55472)
+++ ChangeLog	(revision 55473)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jun 21 00:56:47 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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@r...>
 
 	* configure.in, include/ruby/defines.h (RUBY_USE_SETJMPEX):
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 55472)
+++ win32/win32.c	(revision 55473)
@@ -436,7 +436,7 @@ get_special_folder(int n, WCHAR *buf, si https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L436
     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) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]