Changeset 1194 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Oct 8, 1999, 8:39:35 PM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/win32wbase.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r1189 r1194 1 /* $Id: win32wbase.cpp,v 1.3 0 1999-10-08 16:13:08 cbratschiExp $ */1 /* $Id: win32wbase.cpp,v 1.31 1999-10-08 18:39:35 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 306 306 { 307 307 dprintf(("HwGetWindowHandleData couldn't find owner window %x!!!", cs->hwndParent)); 308 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 308 309 return FALSE; 309 310 } … … 320 321 { 321 322 dprintf(("HwGetWindowHandleData couldn't find owner window %x!!!", cs->hwndParent)); 323 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 322 324 return FALSE; 323 325 } … … 450 452 if(OS2Hwnd == 0) { 451 453 dprintf(("Window creation failed!!")); 454 SetLastError(ERROR_OUTOFMEMORY); //TODO: Better error 452 455 return FALSE; 453 456 } … … 455 458 if(OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32WNDPTR, (ULONG)this) == FALSE) { 456 459 dprintf(("WM_CREATE: WinSetWindowULong %X failed!!", OS2Hwnd)); 460 SetLastError(ERROR_OUTOFMEMORY); //TODO: Better error 457 461 return FALSE; 458 462 } 459 463 if(OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32PM_MAGIC, WIN32PM_MAGIC) == FALSE) { 460 464 dprintf(("WM_CREATE: WinSetWindowULong2 %X failed!!", OS2Hwnd)); 465 SetLastError(ERROR_OUTOFMEMORY); //TODO: Better error 461 466 return FALSE; 462 467 } … … 464 469 if(OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32PM_SHAREDMEM, HeapGetSharedMemBase()) == FALSE) { 465 470 dprintf(("WM_CREATE: WinSetWindowULong2 %X failed!!", OS2Hwnd)); 471 SetLastError(ERROR_OUTOFMEMORY); //TODO: Better error 466 472 return FALSE; 467 473 } … … 470 476 if(OSLibWinSetWindowULong(OS2HwndFrame, OFFSET_WIN32WNDPTR, (ULONG)this) == FALSE) { 471 477 dprintf(("WM_CREATE: WinSetWindowULong %X failed!!", OS2HwndFrame)); 478 SetLastError(ERROR_OUTOFMEMORY); //TODO: Better error 472 479 return FALSE; 473 480 } 474 481 if(OSLibWinSetWindowULong(OS2HwndFrame, OFFSET_WIN32PM_MAGIC, WIN32PM_MAGIC) == FALSE) { 475 482 dprintf(("WM_CREATE: WinSetWindowULong2 %X failed!!", OS2HwndFrame)); 483 SetLastError(ERROR_OUTOFMEMORY); //TODO: Better error 476 484 return FALSE; 477 485 } … … 479 487 if(OSLibWinSetWindowULong(OS2HwndFrame, OFFSET_WIN32PM_SHAREDMEM, HeapGetSharedMemBase()) == FALSE) { 480 488 dprintf(("WM_CREATE: WinSetWindowULong2 %X failed!!", OS2HwndFrame)); 489 SetLastError(ERROR_OUTOFMEMORY); //TODO: Better error 481 490 return FALSE; 482 491 } … … 576 585 } 577 586 } 587 dprintf(("Window creation FAILED (NCCREATE cancelled creation)")); 578 588 fCreated = FALSE; 579 589 OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32WNDPTR, 0); 580 590 OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32PM_MAGIC, 0); 581 591 DestroyWindow(); 592 SetLastError(ERROR_OUTOFMEMORY); //TODO: Better error 582 593 return FALSE; 583 594 }
Note:
See TracChangeset
for help on using the changeset viewer.
