Re: kernel32: Remove unused variable
19 Sep
2010
19 Sep
'10
8:51 p.m.
On 09/19/2010 01:47 AM, Luca Bennati wrote:
Found with scan-build provided by clang/llvm
diff --git a/dlls/kernel32/virtual.c b/dlls/kernel32/virtual.c index dcd5b85..a10bb6c 100644 --- a/dlls/kernel32/virtual.c +++ b/dlls/kernel32/virtual.c @@ -648,17 +648,13 @@ BOOL WINAPI IsBadReadPtr( LPCVOID ptr, UINT size ) __TRY { volatile const char *p = ptr; - char dummy; UINT count = size;
while (count > page_size) { - dummy = *p; p += page_size; count -= page_size; } - dummy = p[0]; - dummy = p[count - 1];
You can't do that. That's the whole point of this function - to test if particular address is readable. Vitaliy.
5653
Age (days ago)
5653
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vitaliy Margolen