diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-13 04:52:35 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-13 04:52:35 +0000 |
commit | 7550a5043444d5cb8dab83ace7c8dce07ea4be2d (patch) | |
tree | f85dd5b2cc682ec7a3e6f5554f82483533a17506 /ext/Win32API/Win32API.c | |
parent | 2f6dd0d261c6387b26e689b03c0e0620c4220904 (diff) | |
download | ruby-7550a5043444d5cb8dab83ace7c8dce07ea4be2d.tar.gz ruby-7550a5043444d5cb8dab83ace7c8dce07ea4be2d.tar.xz ruby-7550a5043444d5cb8dab83ace7c8dce07ea4be2d.zip |
* ext/Win32API/Win32API.c (Win32API_initialize): should pass some
class to first argument of Data_Wrap_Struct(). (ruby-bugs PR#1109)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/Win32API/Win32API.c')
-rw-r--r-- | ext/Win32API/Win32API.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/Win32API/Win32API.c b/ext/Win32API/Win32API.c index a33e989d2..776df56ec 100644 --- a/ext/Win32API/Win32API.c +++ b/ext/Win32API/Win32API.c @@ -53,7 +53,7 @@ Win32API_initialize(self, dllname, proc, import, export) hdll = LoadLibrary(RSTRING(dllname)->ptr); if (!hdll) rb_raise(rb_eRuntimeError, "LoadLibrary: %s\n", RSTRING(dllname)->ptr); - rb_iv_set(self, "__hdll__", Data_Wrap_Struct(self, 0, Win32API_FreeLibrary, hdll)); + rb_iv_set(self, "__hdll__", Data_Wrap_Struct(rb_cData, 0, Win32API_FreeLibrary, hdll)); hproc = GetProcAddress(hdll, RSTRING(proc)->ptr); if (!hproc) { str = rb_str_new3(proc); |