]> git.saurik.com Git - wxWidgets.git/commitdiff
part of SF patch #904166 (DMC fix)
authorChris Elliott <biol75@york.ac.uk>
Tue, 2 Mar 2004 09:28:32 +0000 (09:28 +0000)
committerChris Elliott <biol75@york.ac.uk>
Tue, 2 Mar 2004 09:28:32 +0000 (09:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/ole/oleutils.h

index f8ac24f78eeddffebf797508670c5b2e7dcbbb6f..9f71b28de5d34e28f5cd4abc97f981c21a78f67d 100644 (file)
@@ -72,7 +72,7 @@ public:
     wxAutoULong(ULONG value = 0) : m_Value(value) { }
 
     operator ULONG&() { return m_Value; }
-    ULONG& operator=(ULONG value) { return m_Value = value; }
+    ULONG& operator=(ULONG value) { m_Value = value; return m_Value;  }
     
     wxAutoULong& operator++() { ++m_Value; return *this; }
     const wxAutoULong operator++( int ) { wxAutoULong temp = *this; ++m_Value; return temp; }