Update of /cvsroot/pywin32/pywin32/win32/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv28524/win32/src
Modified Files:
win32gui.i
Log Message:
Fix [2310121] GetDlgItemText fails with no contents
Index: win32gui.i
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/src/win32gui.i,v
retrieving revision 1.123
retrieving revision 1.124
diff -C2 -d -r1.123 -r1.124
*** win32gui.i 13 Jan 2009 22:57:11 -0000 1.123
--- win32gui.i 30 Jan 2009 23:29:00 -0000 1.124
***************
*** 2372,2376 ****
return PyErr_Format(PyExc_MemoryError, "Unable to allocate %d bytes", bufsize);
chars_returned=GetDlgItemText(hwnd, dlgitem, buf, chars_allocated);
! if (chars_returned==0){
PyWin_SetAPIError("GetDlgItemText");
break;
--- 2372,2376 ----
return PyErr_Format(PyExc_MemoryError, "Unable to allocate %d bytes", bufsize);
chars_returned=GetDlgItemText(hwnd, dlgitem, buf, chars_allocated);
! if (chars_returned==0 && GetLastError()!=0){
PyWin_SetAPIError("GetDlgItemText");
break;
|