win32-api 1.10.0-universal-mingw32 → 1.10.1-universal-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e094917b41770c3fc5a82f79b60638d3eb3dc7d5255e17e1aae7089a0070979
4
- data.tar.gz: 2e548c70a32503b0b4f3353bde818a72a4ca75975d6a972d7a570cfc48a93348
3
+ metadata.gz: 2a14aa43aa912bee6af9ecd389e4d12e67222aa00e1dcddb665ed053a2067e0e
4
+ data.tar.gz: 3587ad3d822b763234037c0cd056bcf235c99909e2e06844e466688444d92cad
5
5
  SHA512:
6
- metadata.gz: 1fb21c7689902148c217af40a432791037c9492519f84d171ac3c70225258313af9a13aef7bb2c94b3c319488256dfa3092c123d742d401f46127b9d50168018
7
- data.tar.gz: c3f81dfa40a40920cb44a9dda2e19164e8edb0c3ed41c18577b93186b8abd31cebd76b803c6a22ab82b8fe899cb2b403b8ccd1bbabb55c962552084ca816e70d
6
+ metadata.gz: e7e11b1fa8a96665c1148d6cc63e4cad8fc6b44792bf9c3093ea34b7b9e8b9194c0ed1f730996288dc72ab59f1d035add13d8c9cd09874569e556c31b3de04af
7
+ data.tar.gz: 95cd7d5ed98532b6c45cdb3320e3d033ee7b7c746f4ebcbecd8f1f1226c17182e07ba49c546166a5abb28a4b6a80e6650266f302140a8c616e941c6e8a4c5755
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ == 1.10.1 - 23-Apr-2021
2
+ * Use ULONG2NUM() for API.last_error to avoid truncate
3
+
1
4
  == 1.10.0 - 19-Apr-2021
2
5
  * Add Ruby 3.1 snapshot support
3
6
  * Add API.last_error
data/ext/win32/api.c CHANGED
@@ -43,7 +43,7 @@
43
43
 
44
44
 
45
45
  #define MAX_BUF 1024
46
- #define WINDOWS_API_VERSION "1.10.0"
46
+ #define WINDOWS_API_VERSION "1.10.1"
47
47
 
48
48
  #define _T_VOID 0
49
49
  #define _T_LONG 1
@@ -75,6 +75,7 @@ static ThreadData* thread_data_init(void)
75
75
  VALUE obj;
76
76
 
77
77
  obj = Data_Make_Struct(rb_cObject, ThreadData, NULL, -1, td);
78
+ td->win32api_error = 0;
78
79
  rb_thread_local_aset(rb_thread_current(), id_thread_data, obj);
79
80
 
80
81
  return td;
@@ -1073,7 +1074,7 @@ static VALUE api_call(int argc, VALUE* argv, VALUE self){
1073
1074
  */
1074
1075
  static VALUE get_last_error(VALUE self)
1075
1076
  {
1076
- return INT2NUM(thread_data_get()->win32api_error);
1077
+ return ULONG2NUM(thread_data_get()->win32api_error);
1077
1078
  }
1078
1079
 
1079
1080
  /*
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -18,7 +18,7 @@ class TC_Win32_API < Test::Unit::TestCase
18
18
  end
19
19
 
20
20
  def test_version
21
- assert_equal('1.10.0', API::VERSION)
21
+ assert_equal('1.10.1', API::VERSION)
22
22
  end
23
23
 
24
24
  def test_constructor_basic
data/win32-api.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'win32-api'
5
- spec.version = '1.10.0'
5
+ spec.version = '1.10.1'
6
6
  spec.authors = ['Daniel J. Berger', 'Park Heesob', 'Hiroshi Hatake']
7
7
  spec.license = 'Artistic-2.0'
8
8
  spec.email = 'djberg96@gmail.com'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.1
5
5
  platform: universal-mingw32
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-04-19 00:00:00.000000000 Z
13
+ date: 2021-04-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: test-unit