Changeset 62 in dev for BasicCompiler32/WatchList.cpp
- Timestamp:
- Feb 22, 2007, 3:57:56 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler32/WatchList.cpp
r3 r62 14 14 if(pRelativeVar->dwKind==VAR_GLOBAL){ 15 15 return ImageBase+MemPos_RWSection+pRelativeVar->offset; 16 } 17 else if(pRelativeVar->dwKind==VAR_REFGLOBAL){ 18 extern HANDLE hDebugProcess; 19 ULONG_PTR lpData; 20 ULONG_PTR lpAccBytes; 21 ReadProcessMemory(hDebugProcess, 22 (void *)(ImageBase+MemPos_RWSection+pRelativeVar->offset), 23 &lpData, 24 sizeof(ULONG_PTR), 25 &lpAccBytes); 26 27 return lpData; 16 28 } 17 29 else if(pRelativeVar->dwKind==VAR_LOCAL){ … … 426 438 427 439 pRelativeVar->offset=GlobalVar[i].offset; 428 pRelativeVar->dwKind=VAR_GLOBAL; 440 if(GlobalVar[i].fRef) pRelativeVar->dwKind=VAR_REFGLOBAL; 441 else pRelativeVar->dwKind=VAR_GLOBAL; 429 442 *pType=GlobalVar[i].type; 430 443 lpIndex=GlobalVar[i].u.index;
Note:
See TracChangeset
for help on using the changeset viewer.