* hookapi.cc (find_first_notloaded_dll): Fix a compiler warning.

This commit is contained in:
Corinna Vinschen 2012-03-09 12:42:14 +00:00
parent acb3c3e564
commit e928291c63
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-03-09 Corinna Vinschen <corinna@vinschen.de>
* hookapi.cc (find_first_notloaded_dll): Fix a compiler warning.
2012-03-09 Corinna Vinschen <corinna@vinschen.de>
* hookapi.cc (rvadelta): Add parameter to return maximum available

View File

@ -226,7 +226,7 @@ find_first_notloaded_dll (path_conv& pc)
importRVA -= delta;
DWORD offset = 0;
char *map;
char *map = NULL;
if (importRVA + importRVAMaxSize > wincap.allocation_granularity ())
{
offset = rounddown (importRVA, wincap.allocation_granularity ());