winevt_c 0.3.4-x64-mingw32 → 0.3.6-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: bfffcf9f82ecfb99c51d620e5b8d8f860fd153c06c4fd8cb30596348d4bab3d7
4
- data.tar.gz: f7c73b2620f4d02326fcbea1d928c792d1e49551ff6db26e5de31c7e2b64fa23
3
+ metadata.gz: c509d07278a788d94e9b52215187f80f7f4c3710f7efd8a99f6a7848302e6ba9
4
+ data.tar.gz: 071d32c6916ae398a74d8d6b840a9ade9d18f3d0ec22eb4cce3ceeca5b273f75
5
5
  SHA512:
6
- metadata.gz: 7b1a7b5aafbcaddac205d311ebba9b20c4b5a0b6ea1b4a6abb968e72a5b93825b76359ec629835e763505b534dcc6f8171a6b679f416e55de8db8dcbcdafdbb1
7
- data.tar.gz: 5167393130e3c502085a1708d3b39281e436388c1205f12e99eff439e951e8ba315ba1493cb8ed1cd1fb3587b0aaa95baeb008f952168a2d36a46a9c1b0d780b
6
+ metadata.gz: 14275ebefb93219346c5a440b97b7bc7b7571938968d93df16fb6bc90fa8b33d8b53565993eed685ebd2671b7454699ccd92dfcceeb23cd564e5ff788b3d995a
7
+ data.tar.gz: 8d3d91aaabe4bdaef2dee488cdb3a94b52bf85772c807e4f7b4e1e270d3df30eaf591258962c8097bc07acdfa0f6f0f643e25ef83c9a0d1917900f4f86ab96db
@@ -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: x64-mingw32
6
6
  authors:
7
7
  - Hiroshi Hatake