[Forensics-changes] [yara] 378/415: Fixed erroneous check for CreateFileMapping success. CreateFileMapping returns NULL on error.
Hilko Bengen
bengen at moszumanska.debian.org
Thu Apr 3 05:43:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch debian
in repository yara.
commit 635eb9d7fce73f6171ed21bd933b0cce05ca2069
Author: msuvajac <msuvajac at gmail.com>
Date: Tue Jan 21 10:01:30 2014 +0100
Fixed erroneous check for CreateFileMapping success. CreateFileMapping returns NULL on error.
---
libyara/filemap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libyara/filemap.c b/libyara/filemap.c
index 987da8e..b7688ce 100755
--- a/libyara/filemap.c
+++ b/libyara/filemap.c
@@ -68,7 +68,7 @@ int yr_filemap_map(
0,
NULL);
- if (pmapped_file->mapping == INVALID_HANDLE_VALUE)
+ if (pmapped_file->mapping == NULL)
{
CloseHandle(pmapped_file->file);
return ERROR_COULD_NOT_MAP_FILE;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list