struct stw_framebuffer *fb;
HDC hDC;
+ if (!hPbuffer) {
+ SetLastError(ERROR_INVALID_HANDLE);
+ return NULL;
+ }
+
fb = (struct stw_framebuffer *)hPbuffer;
hDC = GetDC(fb->hWnd);
{
struct stw_framebuffer *fb;
+ if (!hPbuffer) {
+ SetLastError(ERROR_INVALID_HANDLE);
+ return 0;
+ }
+
fb = (struct stw_framebuffer *)hPbuffer;
return ReleaseDC(fb->hWnd, hDC);
{
struct stw_framebuffer *fb;
+ if (!hPbuffer) {
+ SetLastError(ERROR_INVALID_HANDLE);
+ return FALSE;
+ }
+
fb = (struct stw_framebuffer *)hPbuffer;
/* This will destroy all our data */
{
struct stw_framebuffer *fb;
+ if (!hPbuffer) {
+ SetLastError(ERROR_INVALID_HANDLE);
+ return FALSE;
+ }
+
fb = (struct stw_framebuffer *)hPbuffer;
switch (iAttribute) {