win32-mmap 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/lib/win32/mmap.rb +2 -2
- data/test/test_win32_mmap.rb +1 -1
- data/win32-mmap.gemspec +1 -1
- metadata +2 -2
data/CHANGES
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
== 0.3.2 - 28-Apr-2013
|
2
|
+
* Fixed a prototype mismatch in a call to CreateFile. Thanks go to
|
3
|
+
Frank Quednau for the spot.
|
4
|
+
|
1
5
|
== 0.3.1 - 26-Apr-2013
|
2
6
|
* Added the missing OPEN_ALWAYS constant. Thanks go to Frank Quednau.
|
3
7
|
* Set the dependency properly (ffi now, not windows-pr).
|
data/lib/win32/mmap.rb
CHANGED
@@ -9,7 +9,7 @@ module Win32
|
|
9
9
|
#
|
10
10
|
class MMap
|
11
11
|
# The version of the win32-mmap library.
|
12
|
-
VERSION = '0.3.
|
12
|
+
VERSION = '0.3.2'
|
13
13
|
|
14
14
|
include Windows::Constants
|
15
15
|
include Windows::Functions
|
@@ -180,7 +180,7 @@ module Win32
|
|
180
180
|
|
181
181
|
rights = GENERIC_READ|GENERIC_WRITE
|
182
182
|
|
183
|
-
@fh = CreateFile(@file, rights, 0,
|
183
|
+
@fh = CreateFile(@file, rights, 0, nil, OPEN_ALWAYS, 0, 0)
|
184
184
|
|
185
185
|
if @fh == INVALID_HANDLE_VALUE
|
186
186
|
raise SystemCallError.new('CreateFile', FFI.errno)
|
data/test/test_win32_mmap.rb
CHANGED
data/win32-mmap.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32-mmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|