kernel32: Implementation of GetLargestConsoleWindowSize.

Kirill K. Smirnov lich at math.spbu.ru
Fri May 2 04:47:48 CDT 2008


Hi,

+
+    hWnd = GetConsoleWindow();
+
+    SERVER_START_REQ( get_window_rectangles )
+    {
+        req->handle = hWnd;
+        ret = !wine_server_call_err(req);
+        colpix = reply->client.right - reply->client.left;
+        linpix = reply->client.bottom - reply->client.top;
+        colext = (reply->window.right - reply->window.left) - colpix;
+        linext = (reply->window.bottom - reply->window.top) - linpix;
+    }
+    SERVER_END_REQ;

This piece of code does not checks for curses backend. Yes, right now it is 
broken in mainstream, but
1) it may resurrected some day
2) bug #8069 contains quick hack to make it working.

 Fortunately, since you do not check error codes (as Eric pointed out), all 
variables get initialized to somehow sane values and this does not fail for 
curses.

--
Kirill



More information about the wine-devel mailing list