]> source.dussan.org Git - tigervnc.git/commitdiff
Fixed the bug in ToolBar::getTotalWidth() method.
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sat, 27 Jan 2007 11:19:19 +0000 (11:19 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sat, 27 Jan 2007 11:19:19 +0000 (11:19 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2220 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/rfb_win32/ToolBar.cxx

index 857db457ce6f0674affbceb033b8006d8f513325..1bbba30a8cef1bea4216a9f93349c19bea17e922 100644 (file)
@@ -203,9 +203,9 @@ int ToolBar::getHeight() {
 }
 
 int ToolBar::getTotalWidth() {
-  SIZE *size;
-  SendMessage(getHandle(), TB_GETMAXSIZE, 0, (LPARAM)&size);
-  return size->cx;
+  SIZE size;
+  SendMessage(getHandle(), TB_GETMAXSIZE, 0, (LPARAM)(LPSIZE)&size);
+  return size.cx;
 }
 
 void ToolBar::show() {