winevt_c 0.3.4 → 0.3.6

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: 6585e34c6de1fc2c75a1e608dc5e6a8835e6912bdcc5c2e0fcc1016c4772b5a3
4
- data.tar.gz: 68e873e632508e85ac757ea75a4862527fefe153ea502b80a643f8e250334e75
3
+ metadata.gz: 7a51085b5870b9ca54cc61070efc7b9c2e337f64db3c49c26bd02134989e4c49
4
+ data.tar.gz: 78a567ee5ccc9f71a909131218272d8868e240981de93f91492247bbb4456585
5
5
  SHA512:
6
- metadata.gz: 3a3615d380a97b9a467a98170bcff7847d41d98c07cd7e119ede1c6db132ae7f6c35c5f96cf1aada1f5ba33e7348581bd37dc95ec3c8bb0021875f05c44b50a6
7
- data.tar.gz: 8c439416f65397538a5d55ed7b24db1f6d97587505a5296a7fab676f6727b86166c0d00ddb54ef052d0037e3db7f056d4cb4f4ce5e52a4c55c74872420aaafc0
6
+ metadata.gz: e4e0df85d30e468bf018168244c6979725e7e57bb9e9e5d361b83148b2d6a2ee7bba90d04de232eac59c70260635a628f230f4362cb6c1ae73bdab3c3634adeb
7
+ data.tar.gz: 7fb4a5811543f623a028e951498c4ad6637b00c716615c9bc5d5f1b781bb008551477237c6a9c409aecafcbd1a12b0457439fdc2da23ebeee27ddf748df93336
@@ -71,7 +71,7 @@ rb_winevt_channel_each(VALUE self)
71
71
  break;
72
72
  } else if (ERROR_INSUFFICIENT_BUFFER == status) {
73
73
  bufferSize = bufferUsed;
74
- temp = (LPWSTR)realloc(buffer, bufferSize * sizeof(WCHAR));
74
+ temp = (LPWSTR)xrealloc(buffer, bufferSize * sizeof(WCHAR));
75
75
  if (temp) {
76
76
  buffer = temp;
77
77
  temp = NULL;
@@ -7,7 +7,7 @@ wstr_to_mbstr(UINT cp, const WCHAR *wstr, int clen)
7
7
  {
8
8
  char *ptr;
9
9
  int len = WideCharToMultiByte(cp, 0, wstr, clen, NULL, 0, NULL, NULL);
10
- if (!(ptr = malloc(len))) return 0;
10
+ if (!(ptr = xmalloc(len))) return 0;
11
11
  WideCharToMultiByte(cp, 0, wstr, clen, ptr, len, NULL, NULL);
12
12
 
13
13
  return ptr;
@@ -393,7 +393,7 @@ char* get_description(EVT_HANDLE handle)
393
393
  status = GetLastError();
394
394
  if (ERROR_INSUFFICIENT_BUFFER == status) {
395
395
  bufferSize = count;
396
- pTemp = (PEVT_VARIANT)realloc(pProperty, bufferSize);
396
+ pTemp = (PEVT_VARIANT)xrealloc(pProperty, bufferSize);
397
397
  if (pTemp) {
398
398
  pProperty = pTemp;
399
399
  pTemp = NULL;
@@ -1,3 +1,3 @@
1
1
  module Winevt
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: winevt_c
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi Hatake