Hi,
> display->GetScreenResolution(0,&width,&height,&bpp);
> printf("Width: %ul Height: %ul Bits Per Pixel: %ul. ", width,height,bpp);
> buffersize = width*height*bpp/8;
> databuff= (BYTE*)CoTaskMemAlloc(buffersize);It seems, *buffersize* calculated incorrectly. Please do not divide it by 8 (i.e, buffersize = width * height * bpp). Best regards, Vadim _______________________________________________ vbox-dev mailing list [email protected] https://www.virtualbox.org/mailman/listinfo/vbox-dev
