Possible sign extension bug
This commit is contained in:
parent
efaee6ffdd
commit
16ae9a82fb
|
@ -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();
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#include "console.h"
|
||||
#include "threading.h"
|
||||
|
||||
void dputs(const char* Text)
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue