winevt_c 0.3.3-x86-mingw32 → 0.3.4-x86-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: 282bd49abbeea4edf6b5016004285f506b6aa9b99e44fdc76d950f921a6c5827
|
4
|
+
data.tar.gz: 6d039edbb350f67ef0cb4335a37a7931b9d8d15a8091ea2929859580d2445b92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e738b35de5a950c1525aaf5334404500f73c06c2718dec04a2e6b5c6e78cad433d68a623c354cbfa4746bbf6a9428f26b9febada2c04cb68e8ac2a6aff1edc4
|
7
|
+
data.tar.gz: 4b64faab9db5237f0fee0d169bda02cc2c0d66250bebc172ce00b77231c616819dcb02a31931e1face4b9789d2b8ed318c35f70d60a9cdea5e2fd4967999dc39
|
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: x86-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
|