winevt_c 0.3.4-x86-mingw32 → 0.3.6-x86-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: 282bd49abbeea4edf6b5016004285f506b6aa9b99e44fdc76d950f921a6c5827
4
- data.tar.gz: 6d039edbb350f67ef0cb4335a37a7931b9d8d15a8091ea2929859580d2445b92
3
+ metadata.gz: b42000e49f939672b4a5dd2ec7e6f67d57ca5aa4bab75d24f6887ba448d0a35d
4
+ data.tar.gz: 6e678607cc1e46772ad460c41315643d57c40338da293cb6e1ecbd15300cabf7
5
5
  SHA512:
6
- metadata.gz: 4e738b35de5a950c1525aaf5334404500f73c06c2718dec04a2e6b5c6e78cad433d68a623c354cbfa4746bbf6a9428f26b9febada2c04cb68e8ac2a6aff1edc4
7
- data.tar.gz: 4b64faab9db5237f0fee0d169bda02cc2c0d66250bebc172ce00b77231c616819dcb02a31931e1face4b9789d2b8ed318c35f70d60a9cdea5e2fd4967999dc39
6
+ metadata.gz: 741589e615eea5ae2bc2f9cb7e9b6f76830eb9276d4814406b1f46a1f44c226acfa7cec9f3980dcbadd7d4aafc54391174995457aecef11a389b46820bae5ad2
7
+ data.tar.gz: fb1f19204fe658e2055ee9602a63a3e2f28f60b615a6e8533f8873743a0ee245809bb3c3ae6df656a53ead76c11222a32f9b0d0bc7a143c9f56ff5d54494e59a
@@ -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;
Binary file
Binary file
Binary file
@@ -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: x86-mingw32
6
6
  authors:
7
7
  - Hiroshi Hatake