diff options
author | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2007-01-27 11:19:19 +0000 |
---|---|---|
committer | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2007-01-27 11:19:19 +0000 |
commit | 06e58b12c50d068fa4ce70fc5e7ebca251410294 (patch) | |
tree | 7124d7f1fdf3e9360a17590f957992e61e013189 /win/rfb_win32 | |
parent | 81f453aef53e6971e626c69ccd3c2396203e0047 (diff) | |
download | tigervnc-06e58b12c50d068fa4ce70fc5e7ebca251410294.tar.gz tigervnc-06e58b12c50d068fa4ce70fc5e7ebca251410294.zip |
Fixed the bug in ToolBar::getTotalWidth() method.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2220 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/rfb_win32')
-rw-r--r-- | win/rfb_win32/ToolBar.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/rfb_win32/ToolBar.cxx b/win/rfb_win32/ToolBar.cxx index 857db457..1bbba30a 100644 --- a/win/rfb_win32/ToolBar.cxx +++ b/win/rfb_win32/ToolBar.cxx @@ -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() { |