[rkward-cvs] SF.net SVN: rkward:[2639] trunk/rkward/rkward/qwinhost/qwinhost.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu Sep 3 09:05:33 UTC 2009


Revision: 2639
          http://rkward.svn.sourceforge.net/rkward/?rev=2639&view=rev
Author:   tfry
Date:     2009-09-03 09:05:33 +0000 (Thu, 03 Sep 2009)

Log Message:
-----------
Fix for compilation with MinGW GCC 4

Modified Paths:
--------------
    trunk/rkward/rkward/qwinhost/qwinhost.cpp

Modified: trunk/rkward/rkward/qwinhost/qwinhost.cpp
===================================================================
--- trunk/rkward/rkward/qwinhost/qwinhost.cpp	2009-09-03 09:04:48 UTC (rev 2638)
+++ trunk/rkward/rkward/qwinhost/qwinhost.cpp	2009-09-03 09:05:33 UTC (rev 2639)
@@ -289,9 +289,9 @@
 QString QWinHost::getClientTitle() const {
 	if (!hwnd) return QString();
 
-	char buffer[256];
+	WCHAR buffer[256];
 	::GetWindowText(hwnd, buffer, 255);
-	return (QString(buffer));
+	return (QString((char*) buffer));
 }
 
 /*!


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list