QWindowsXPStylePrivate::buffer(): Improve warnings.

Task-number: QTBUG-44282
Change-Id: If617db5c6eae410042394f20855892a2c564e808
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
bb10
Friedemann Kleint 2015-02-04 11:24:20 +01:00
parent 276de71be7
commit b1b262559c
1 changed files with 2 additions and 2 deletions

View File

@ -505,13 +505,13 @@ HBITMAP QWindowsXPStylePrivate::buffer(int w, int h)
nullBitmap = (HBITMAP)SelectObject(bufferDC, bufferBitmap);
if (!bufferBitmap) {
qErrnoWarning("QWindowsXPStylePrivate::buffer(w,h), failed to create dibsection");
qErrnoWarning("QWindowsXPStylePrivate::buffer(%dx%d), CreateDIBSection() failed.", w, h);
bufferW = 0;
bufferH = 0;
return 0;
}
if (!bufferPixels) {
qErrnoWarning("QWindowsXPStylePrivate::buffer(w,h), did not allocate pixel data");
qErrnoWarning("QWindowsXPStylePrivate::buffer(%dx%d), CreateDIBSection() did not allocate pixel data.", w, h);
bufferW = 0;
bufferH = 0;
return 0;