1
0
Fork 0

Possible sign extension bug

This commit is contained in:
Nukem 2015-03-27 19:31:43 -04:00
parent efaee6ffdd
commit 16ae9a82fb
6 changed files with 8 additions and 5 deletions

View File

@ -59,7 +59,8 @@ void BookmarkDelRange(uint Start, uint End)
return;
// Are all bookmarks going to be deleted?
if(Start == 0x00000000 && End == 0xFFFFFFFF)
// 0x00000000 - 0xFFFFFFFF
if(Start == 0 && End == ~0)
{
EXCLUSIVE_ACQUIRE(LockBookmarks);
bookmarks.clear();

View File

@ -275,7 +275,7 @@ void BpToBridge(const BREAKPOINT* Bp, BRIDGEBP* BridgeBp)
// bridge breakpoint
//
// TOOD: ASSERT(?) These should never be null
if(!Bp or !BridgeBp)
if(!Bp || !BridgeBp)
return;
memset(BridgeBp, 0, sizeof(BRIDGEBP));

View File

@ -85,7 +85,8 @@ void CommentDelRange(uint Start, uint End)
return;
// Are all comments going to be deleted?
if(Start == 0x00000000 && End == 0xFFFFFFFF)
// 0x00000000 - 0xFFFFFFFF
if(Start == 0 && End == ~0)
{
EXCLUSIVE_ACQUIRE(LockComments);
comments.clear();

View File

@ -1,5 +1,4 @@
#include "console.h"
#include "threading.h"
void dputs(const char* Text)
{

View File

@ -102,7 +102,8 @@ void FunctionDelRange(uint Start, uint End)
return;
// Should all functions be deleted?
if(Start == 0x00000000 && End == 0xFFFFFFFF)
// 0x00000000 - 0xFFFFFFFF
if(Start == 0 && End == ~0)
{
EXCLUSIVE_ACQUIRE(LockFunctions);
functions.clear();

View File

@ -212,6 +212,7 @@ DWORD ThreadGetId(HANDLE hThread)
}
// Wasn't found, check with Windows
// NOTE: Requires VISTA+
DWORD id = GetThreadId(hThread);
// Returns 0 on error;