Changeset 76 in dev for BasicCompiler_Common/calculation.cpp
- Timestamp:
- Mar 21, 2007, 9:26:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/calculation.cpp
r75 r76 555 555 void *offset; 556 556 DWORD dwData; 557 SIZE_T stAccBytes;557 SIZE_T accessBytes; 558 558 float flt; 559 559 … … 579 579 580 580 if(tempType.IsDouble()){ 581 i3=ReadProcessMemory(hDebugProcess,offset,&nums[pnum],sizeof(double),& stAccBytes);581 i3=ReadProcessMemory(hDebugProcess,offset,&nums[pnum],sizeof(double),&accessBytes); 582 582 } 583 583 else if(tempType.IsSingle()){ 584 if(i3=ReadProcessMemory(hDebugProcess,offset,&flt,sizeof(float),& stAccBytes)){584 if(i3=ReadProcessMemory(hDebugProcess,offset,&flt,sizeof(float),&accessBytes)){ 585 585 nums[pnum]=(double)flt; 586 586 } … … 588 588 else if(tempType.IsPointer()){ 589 589 LONG_PTR lpData; 590 if(i3=ReadProcessMemory(hDebugProcess,offset,&lpData,sizeof(LONG_PTR),& stAccBytes)){590 if(i3=ReadProcessMemory(hDebugProcess,offset,&lpData,sizeof(LONG_PTR),&accessBytes)){ 591 591 i64nums[pnum]=(_int64)lpData; 592 592 } … … 595 595 type[pnum]=DEF_INT64; 596 596 597 i3=ReadProcessMemory(hDebugProcess,offset,&i64nums[pnum],sizeof(_int64),& stAccBytes);597 i3=ReadProcessMemory(hDebugProcess,offset,&i64nums[pnum],sizeof(_int64),&accessBytes); 598 598 } 599 599 600 600 else if(tempType.IsLong()){ 601 601 long lData; 602 if(i3=ReadProcessMemory(hDebugProcess,offset,&lData,sizeof(long),& stAccBytes)){602 if(i3=ReadProcessMemory(hDebugProcess,offset,&lData,sizeof(long),&accessBytes)){ 603 603 i64nums[pnum]=(_int64)lData; 604 604 } 605 605 } 606 606 else if(tempType.IsDWord()){ 607 if(i3=ReadProcessMemory(hDebugProcess,offset,&dwData,sizeof(DWORD),& stAccBytes)){607 if(i3=ReadProcessMemory(hDebugProcess,offset,&dwData,sizeof(DWORD),&accessBytes)){ 608 608 i64nums[pnum]=(_int64)dwData; 609 609 } … … 611 611 else if(tempType.IsInteger()){ 612 612 short shortData; 613 if(i3=ReadProcessMemory(hDebugProcess,offset,&shortData,sizeof(short),& stAccBytes)){613 if(i3=ReadProcessMemory(hDebugProcess,offset,&shortData,sizeof(short),&accessBytes)){ 614 614 i64nums[pnum]=(_int64)shortData; 615 615 } … … 617 617 else if(tempType.IsWord()){ 618 618 WORD wData; 619 if(i3=ReadProcessMemory(hDebugProcess,offset,&wData,sizeof(WORD),& stAccBytes)){619 if(i3=ReadProcessMemory(hDebugProcess,offset,&wData,sizeof(WORD),&accessBytes)){ 620 620 i64nums[pnum]=(_int64)wData; 621 621 } … … 623 623 else if(tempType.IsSByte()){ 624 624 char charData; 625 if(i3=ReadProcessMemory(hDebugProcess,offset,&charData,sizeof(char),& stAccBytes)){625 if(i3=ReadProcessMemory(hDebugProcess,offset,&charData,sizeof(char),&accessBytes)){ 626 626 i64nums[pnum]=(_int64)charData; 627 627 } … … 629 629 else if(tempType.IsByte()){ 630 630 BYTE byteData; 631 if(i3=ReadProcessMemory(hDebugProcess,offset,&byteData,sizeof(BYTE),& stAccBytes)){631 if(i3=ReadProcessMemory(hDebugProcess,offset,&byteData,sizeof(BYTE),&accessBytes)){ 632 632 i64nums[pnum]=(_int64)byteData; 633 633 } … … 635 635 else if(tempType.IsBoolean()){ 636 636 BYTE byteData; 637 if(i3=ReadProcessMemory(hDebugProcess,offset,&byteData,sizeof(BYTE),& stAccBytes)){637 if(i3=ReadProcessMemory(hDebugProcess,offset,&byteData,sizeof(BYTE),&accessBytes)){ 638 638 i64nums[pnum]=(_int64)byteData; 639 639 }
Note:
See TracChangeset
for help on using the changeset viewer.