Author: eliot Date: 2012-01-06 13:09:07 -0800 (Fri, 06 Jan 2012) New Revision: 2523
Modified: trunk/platforms/win32/plugins/HostWindowPlugin/sqWin32HostWindowPlugin.c Log: Fix a slip in ioSetTitleOfWindow in the win32 HostWindowPlugin support code. The call to SetWindowTextW needs to use hwnd instead of stWindow. Thanks Bert!
Modified: trunk/platforms/win32/plugins/HostWindowPlugin/sqWin32HostWindowPlugin.c =================================================================== --- trunk/platforms/win32/plugins/HostWindowPlugin/sqWin32HostWindowPlugin.c 2011-12-12 19:24:27 UTC (rev 2522) +++ trunk/platforms/win32/plugins/HostWindowPlugin/sqWin32HostWindowPlugin.c 2012-01-06 21:09:07 UTC (rev 2523) @@ -402,7 +402,7 @@ strncpy(titleString, newTitle, sizeOfTitle); titleString[sizeOfTitle] = 0; MultiByteToWideChar(CP_UTF8, 0, titleString, -1, wideTitle, 1024); - if(SetWindowTextW(stWindow, wideTitle) == 0) return -1; + if(SetWindowTextW(hwnd, wideTitle) == 0) return -1; return sizeOfTitle; }
vm-dev@lists.squeakfoundation.org