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 +4 -4
- data/ext/winevt/winevt_utils.c +12 -3
- data/lib/winevt/2.4/winevt.so +0 -0
- data/lib/winevt/2.5/winevt.so +0 -0
- data/lib/winevt/2.6/winevt.so +0 -0
- data/lib/winevt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfffcf9f82ecfb99c51d620e5b8d8f860fd153c06c4fd8cb30596348d4bab3d7
|
4
|
+
data.tar.gz: f7c73b2620f4d02326fcbea1d928c792d1e49551ff6db26e5de31c7e2b64fa23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b1a7b5aafbcaddac205d311ebba9b20c4b5a0b6ea1b4a6abb968e72a5b93825b76359ec629835e763505b534dcc6f8171a6b679f416e55de8db8dcbcdafdbb1
|
7
|
+
data.tar.gz: 5167393130e3c502085a1708d3b39281e436388c1205f12e99eff439e951e8ba315ba1493cb8ed1cd1fb3587b0aaa95baeb008f952168a2d36a46a9c1b0d780b
|
data/ext/winevt/winevt_utils.c
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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.
|
data/lib/winevt/2.4/winevt.so
CHANGED
Binary file
|
data/lib/winevt/2.5/winevt.so
CHANGED
Binary file
|
data/lib/winevt/2.6/winevt.so
CHANGED
Binary file
|
data/lib/winevt/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|