Skip to content

Commit

Permalink
Eliminate warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tishion committed Nov 9, 2016
1 parent a078ac2 commit b962b69
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ int CodeBag()
unsigned char* pEnd = (unsigned char*)&MMLOADERSHELLCODEEND;

// Get code length
int codeLength = (pEnd - pStart);
ULONGLONG codeLength = (pEnd - pStart);

// Get the buffer length
size_t textLength = 512 * 1024;
Expand Down Expand Up @@ -420,7 +420,7 @@ int CodeBag()
else
{
// Write the string content to the disk file
if (!::WriteFile(h, pBuffer, textLength, &dwBytesWritten, NULL))
if (!::WriteFile(h, pBuffer, (DWORD)textLength, &dwBytesWritten, NULL))
{
ConsoleWrite("Failed to write content to file \"mmLoaderShellCode\".\r\n");
return -1;
Expand Down

0 comments on commit b962b69

Please sign in to comment.