Skip to content

Commit 28af9df

Browse files
authored
libcoverage: correct variable reference (googleprojectzero#286)
This variable was moved into the context, but the reference did not base it from the context. This corrects the reference.
1 parent 7f40e7a commit 28af9df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/libcoverage/coverage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ int cov_initialize(struct cov_context* context)
7373
}
7474

7575
context->shmem =
76-
MapViewOfFIle(hMapping, FILE_MAP_ALL_ACCESS, 0, 0, SHM_SIZE);
76+
MapViewOfFile(context->hMapping, FILE_MAP_ALL_ACCESS, 0, 0, SHM_SIZE);
7777
if (!context->shmem) {
7878
CloseHandle(context->hMapping);
7979
context->hMapping = INVALID_HANDLE_VALUE;

0 commit comments

Comments
 (0)