winevt_c 0.3.3-x64-mingw32 → 0.3.4-x64-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: d4b225fc8a72ae39edff6f2f16b965a1dd5dcabea9e1410a70db49e2260cd761
4
- data.tar.gz: 45a7b724b53c3e1c5e13d78b45ec518382a6dad813abfa323783bcb8cff2434e
3
+ metadata.gz: bfffcf9f82ecfb99c51d620e5b8d8f860fd153c06c4fd8cb30596348d4bab3d7
4
+ data.tar.gz: f7c73b2620f4d02326fcbea1d928c792d1e49551ff6db26e5de31c7e2b64fa23
5
5
  SHA512:
6
- metadata.gz: f6fdb7e8d26a4be2b855912d683da673a015374665c0aa567cb3ab8146c20339ed121d4999ef0936938c777187961d06d7fb2bb92cb936f2bd8779f9ff3af513
7
- data.tar.gz: f4ecd13bc667dfbd7066dc7ecfdfebfdb11a6e01660c2a07bd9b9b5086e8155d85ff9e54920d92be386261bc82069b6eaf4091c8e2e2d76cec7f9cf4b405e5fe
6
+ metadata.gz: 7b1a7b5aafbcaddac205d311ebba9b20c4b5a0b6ea1b4a6abb968e72a5b93825b76359ec629835e763505b534dcc6f8171a6b679f416e55de8db8dcbcdafdbb1
7
+ data.tar.gz: 5167393130e3c502085a1708d3b39281e436388c1205f12e99eff439e951e8ba315ba1493cb8ed1cd1fb3587b0aaa95baeb008f952168a2d36a46a9c1b0d780b
@@ -59,7 +59,10 @@ char* render_event(EVT_HANDLE handle, DWORD flags)
59
59
  MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
60
60
  msgBuf, 0, NULL);
61
61
 
62
- rb_raise(rb_eWinevtQueryError, "ErrorCode: %d\nError: %s\n", status, msgBuf);
62
+ VALUE errmsg = rb_str_new2(msgBuf);
63
+ LocalFree(msgBuf);
64
+
65
+ rb_raise(rb_eWinevtQueryError, "ErrorCode: %d\nError: %s\n", status, RSTRING_PTR(errmsg));
63
66
  }
64
67
 
65
68
  result = wstr_to_mbstr(CP_UTF8, buffer, -1);
@@ -122,7 +125,10 @@ VALUE get_values(EVT_HANDLE handle)
122
125
  MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
123
126
  msgBuf, 0, NULL);
124
127
 
125
- rb_raise(rb_eWinevtQueryError, "ErrorCode: %d\nError: %s\n", status, msgBuf);
128
+ VALUE errmsg = rb_str_new2(msgBuf);
129
+ LocalFree(msgBuf);
130
+
131
+ rb_raise(rb_eWinevtQueryError, "ErrorCode: %d\nError: %s\n", status, RSTRING_PTR(errmsg));
126
132
  }
127
133
 
128
134
  PEVT_VARIANT pRenderedValues = (PEVT_VARIANT)buffer;
@@ -322,7 +328,10 @@ char* get_description(EVT_HANDLE handle)
322
328
  MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
323
329
  msgBuf, 0, NULL);
324
330
 
325
- rb_raise(rb_eWinevtQueryError, "ErrorCode: %d\nError: %s\n", status, msgBuf);
331
+ VALUE errmsg = rb_str_new2(msgBuf);
332
+ LocalFree(msgBuf);
333
+
334
+ rb_raise(rb_eWinevtQueryError, "ErrorCode: %d\nError: %s\n", status, RSTRING_PTR(errmsg));
326
335
  }
327
336
 
328
337
  // Obtain buffer as EVT_VARIANT pointer. To avoid ErrorCide 87 in EvtRender.
Binary file
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  module Winevt
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: winevt_c
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Hiroshi Hatake
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-24 00:00:00.000000000 Z
11
+ date: 2019-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler