* ext/win32ole/win32ole.c: use TlsAlloc instead of __declspec(thread)
to avoid SEGV if win32ole.so loaded with LoadLibrary in Windows Vista or earlier. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ad55d141eb
commit
57408cb1d1
@ -1,3 +1,9 @@
|
|||||||
|
Fri Jan 25 19:14:24 2013 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||||
|
|
||||||
|
* ext/win32ole/win32ole.c: use TlsAlloc instead of __declspec(thread)
|
||||||
|
to avoid SEGV if win32ole.so loaded with LoadLibrary in Windows
|
||||||
|
Vista or earlier.
|
||||||
|
|
||||||
Fri Jan 25 16:47:31 2013 Shugo Maeda <shugo@ruby-lang.org>
|
Fri Jan 25 16:47:31 2013 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
* ext/socket/raddrinfo.c (rsock_unixpath_len, init_unix_addrinfo),
|
* ext/socket/raddrinfo.c (rsock_unixpath_len, init_unix_addrinfo),
|
||||||
|
@ -214,7 +214,7 @@ VALUE cWIN32OLE_PROPERTY;
|
|||||||
|
|
||||||
static VALUE ary_ole_event;
|
static VALUE ary_ole_event;
|
||||||
static ID id_events;
|
static ID id_events;
|
||||||
#ifdef RB_THREAD_SPECIFIC
|
#if defined(RB_THREAD_SPECIFIC) && (defined(__CYGWIN__) || defined(__MINGW32__))
|
||||||
static RB_THREAD_SPECIFIC BOOL g_ole_initialized;
|
static RB_THREAD_SPECIFIC BOOL g_ole_initialized;
|
||||||
# define g_ole_initialized_init() ((void)0)
|
# define g_ole_initialized_init() ((void)0)
|
||||||
# define g_ole_initialized_set(val) (g_ole_initialized = (val))
|
# define g_ole_initialized_set(val) (g_ole_initialized = (val))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user