[pywin32-checkins] /hgroot/pywin32/pywin32: Fix error return in win32gui.GetClassName
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <pyw...@li...> - 2012-04-20 08:40:13
|
changeset a72460d9b458 in /hgroot/pywin32/pywin32 details: http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/hgroot/pywin32/pywin32?cmd=changeset;node=a72460d9b458 summary: Fix error return in win32gui.GetClassName diffstat: win32/src/win32gui.i | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 6e918dcbc8c7 -r a72460d9b458 win32/src/win32gui.i --- a/win32/src/win32gui.i Wed Apr 11 12:25:05 2012 -0400 +++ b/win32/src/win32gui.i Fri Apr 20 04:38:54 2012 -0400 @@ -5996,7 +5996,7 @@ // dont bother with lock - no callback possible. int nchars = GetClassName(hwnd, buf, sizeof buf/sizeof buf[0]); if (nchars==0) - PyWin_SetAPIError("GetClassName"); + return PyWin_SetAPIError("GetClassName"); return PyWinObject_FromTCHAR(buf, nchars); } %} |