Skip to content

Commit

Permalink
cut & paste gone wrong: use the correct field name for the old wnd pr…
Browse files Browse the repository at this point in the history
…oc..

git-svn-id: https://xpra.org/svn/Xpra/trunk@8713 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 28, 2015
1 parent 2f548e2 commit 9e31b8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/platform/win32/window_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ def cleanup(self, *args):
log("cleanup%s", args)
self._message_map = {}
#since we assume the window is closed, restoring the wnd proc may be redundant here:
if not self.old_win32_proc or not self._hwnd:
if not self._oldwndproc or not self._hwnd:
return
try:
win32api.SetWindowLong(self._hwnd, win32con.GWL_WNDPROC, self._oldwndproc)
self.old_win32_proc = None
self._oldwndproc = None
self._hwnd = None
except:
log.error("cleanup", exc_info=True)
Expand Down

0 comments on commit 9e31b8c

Please sign in to comment.