Added check for valid DC

svn path=/trunk/; revision=1255
This commit is contained in:
Eric Kohl 2000-07-08 09:46:32 +00:00
parent 0afbea5a1c
commit fb7b00bd59

View file

@ -16,6 +16,8 @@ int main (void)
// Set up a DC called Desktop that accesses DISPLAY
Desktop = CreateDCA("DISPLAY", NULL, NULL, NULL);
if (Desktop == NULL)
return 1;
// Create a red pen and select it into the DC
RedPen = CreatePen(PS_SOLID, 8, 0x0000ff);