in src/main/cpp/launcher/windows/src/ExtractUtils.c [36:55]
void skipLauncherStub(LauncherProperties * props, DWORD stubSize) {
HANDLE hFileRead = props->handler;
if(hFileRead!=INVALID_HANDLE_VALUE) {
// just read stub data.. no need to write it anywhere
DWORD read = 0;
char * offsetbuf = newpChar(stubSize);
DWORD sizeLeft = stubSize;
while(ReadFile(hFileRead, offsetbuf, sizeLeft, &read, 0) && sizeLeft && read) {
sizeLeft-=read;
addProgressPosition(props, read);
if(sizeLeft==0) break;
if(read==0) { // we need some more bytes to read but we can`t to read
props->status = ERROR_INTEGRITY;
break;
}
}
FREE(offsetbuf);
}
}