mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2025-12-17 10:14:32 +08:00
tune code for debug print
This commit is contained in:
@@ -3494,7 +3494,7 @@ void GUIAPI MainWindowThreadCleanup (HWND hMainWnd)
|
||||
_MG_PRINTF ("GUI>Window: MainWindowThreadCleanup called: %p (%s)\n", pWin, pWin->spCaption);
|
||||
|
||||
if (!MG_IS_DESTROYED_WINDOW (hMainWnd)) {
|
||||
_MG_PRINTF (stderr, "GUI>Window: Unexpected calling of "
|
||||
_MG_PRINTF ("GUI>Window: Unexpected calling of "
|
||||
"(MainWindowThreadCleanup); Window (%p) "
|
||||
"not destroyed yet!\n", hMainWnd);
|
||||
return;
|
||||
@@ -5938,7 +5938,7 @@ static int gui_GenerateMaskRect(HWND hWnd, RECT4MASK* rect, int rect_size)
|
||||
(MASKRECT *) calloc (rect_size, sizeof (MASKRECT));
|
||||
|
||||
if (!pCtrl->mask_rects) {
|
||||
_MG_PRINTF (stderr, "GUI>Window: Not enough memory!\n");
|
||||
_MG_PRINTF ("GUI>Window: Not enough memory!\n");
|
||||
free (rect);
|
||||
return FALSE;
|
||||
}
|
||||
@@ -5953,7 +5953,7 @@ static int gui_GenerateMaskRect(HWND hWnd, RECT4MASK* rect, int rect_size)
|
||||
new_maskrect =
|
||||
(MASKRECT *) calloc (rect_size, sizeof (MASKRECT));
|
||||
if (!new_maskrect) {
|
||||
_MG_PRINTF (stderr, "GUI>Window: Not enough memory!\n");
|
||||
_MG_PRINTF ("GUI>Window: Not enough memory!\n");
|
||||
free (rect);
|
||||
return FALSE;
|
||||
}
|
||||
@@ -6068,7 +6068,7 @@ BOOL GUIAPI SetWindowRegion (HWND hWnd, const CLIPRGN * region)
|
||||
(MASKRECT *) calloc (rect_size, sizeof (MASKRECT));
|
||||
|
||||
if (!pCtrl->mask_rects) {
|
||||
_MG_PRINTF (stderr, "GUI>Window: Not enough memory!\n");
|
||||
_MG_PRINTF ("GUI>Window: Not enough memory!\n");
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
@@ -6082,7 +6082,7 @@ BOOL GUIAPI SetWindowRegion (HWND hWnd, const CLIPRGN * region)
|
||||
(MASKRECT *) calloc (rect_size, sizeof (MASKRECT));
|
||||
|
||||
if (!new_maskrect) {
|
||||
_MG_PRINTF (stderr, "GUI>Window: Not enough memory!\n");
|
||||
_MG_PRINTF ("GUI>Window: Not enough memory!\n");
|
||||
return FALSE;
|
||||
}
|
||||
free (pCtrl->mask_rects);
|
||||
@@ -6118,7 +6118,7 @@ BOOL GUIAPI SetWindowRegion (HWND hWnd, const CLIPRGN * region)
|
||||
|
||||
rect = (RECT4MASK *) calloc(rect_size, sizeof(RECT4MASK));
|
||||
if(rect == NULL) {
|
||||
_MG_PRINTF (stderr, "GUI>Window: Not enough memory!\n");
|
||||
_MG_PRINTF ("GUI>Window: Not enough memory!\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user