# BarClock Plus v3.0a
# Jason Hood, 24 July, 2004.
# Prevent "Application Error" on some programs' exit (calling the hook after
# the DLL was detached was using invalid memory).
File: BARCLKNT.DLL
# Zero the view handle after unmapping it
000409: 0C [ 0E ]
00040F: 2B C0 40 5D C2 0C 00 87 05 00 30 [ B8 01 00 00 00 5D C2 0C 00 FF 35 ]
40 00 50 90 [ 00 30 40 00 ]
000464: AD [ AF ]
000484: 8D [ 8F ]
# Test for the view handle being zero in the hook
0007AE: E3 62 39 41 28 75 19 8B 47 08 83 [ 39 41 28 75 1B 8B 47 08 3D 85 00 ]
F8 0D 74 41 83 F8 0C 74 3C 2D 85 [ 00 00 74 41 3D 86 00 00 00 74 3A ]
00 00 00 74 35 48 74 32 90 90 [ 83 F8 0D 74 35 83 F8 0C 74 30 ]
# Adjust relocation
003A08: 18 [ 1A ]
               (
geocities.com/jadoxa)