Removed direct references to CLASS internals.

diff --git a/misc/spy.c b/misc/spy.c
index 978334a..f8afbe2 100644
--- a/misc/spy.c
+++ b/misc/spy.c
@@ -647,7 +647,7 @@
 	    INT len;
 
 	    *(p++)='{';
-	    GlobalGetAtomNameA( pWnd->class->atomName, p, n + 1);
+	    GlobalGetAtomNameA((ATOM) GetClassWord(pWnd->hwndSelf, GCW_ATOM), p, n + 1);
 	    src = p += (len = lstrlenA(p));
 	    if( len >= n ) src = wnd_buffer;	/* something nonzero */
 	    postfix = '}';