mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:52:57 +00:00
Added check for valid DC
svn path=/trunk/; revision=1255
This commit is contained in:
parent
0afbea5a1c
commit
fb7b00bd59
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue