1
0
Fork 0

Fix decompilation

pull/16/head
galaxyhaxz 2018-06-16 22:13:26 -05:00 committed by GitHub
parent 3861e690af
commit 52ad4b73cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -46,7 +46,7 @@ char *__fastcall GetErr(int error_code)
int v1; // edi
unsigned int v2; // eax
signed int v4; // eax
_BYTE *i; // ecx
char *i; // ecx
v1 = error_code;
v2 = ((unsigned int)error_code >> 16) & 0x1FFF;
@ -64,7 +64,7 @@ char *__fastcall GetErr(int error_code)
wsprintfA(sz_error_buf, "unknown error 0x%08x", v1);
}
v4 = strlen(sz_error_buf);
for ( i = (unsigned char *)&appfat_terminated + v4 + 3; v4 > 0; *i = 0 )
for ( i = &sz_error_buf[v4-1]; v4 > 0; *i = 0 )
{
--v4;
if ( *--i != '\r' && *i != '\n' )
@ -72,7 +72,6 @@ char *__fastcall GetErr(int error_code)
}
return sz_error_buf;
}
// 4B7930: using guessed type int appfat_terminated;
//----- (004010CE) --------------------------------------------------------
void __fastcall GetDDErr(int error_code, char *error_buf, int error_buf_len)