From a71e1b49612fb699b58e5c7e9c2389644534976f Mon Sep 17 00:00:00 2001
From: Marcus Meissner <marcus@jet.franken.de>
Date: Fri, 12 Mar 1999 17:29:26 +0000
Subject: [PATCH] Removed use of WND struct.

---
 misc/shell.c | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/misc/shell.c b/misc/shell.c
index 933f348b44d..9c739b8f723 100644
--- a/misc/shell.c
+++ b/misc/shell.c
@@ -14,10 +14,10 @@
 #include "winerror.h"
 #include "file.h"
 #include "heap.h"
+#include "ldt.h"
 #include "module.h"
 #include "neexe.h"
 #include "dlgs.h"
-#include "win.h"
 #include "cursoricon.h"
 #include "sysmetrics.h"
 #include "shellapi.h"
@@ -67,11 +67,15 @@ static UINT16	uMsgShellActivate = 0;
  */
 void WINAPI DragAcceptFiles(HWND hWnd, BOOL b)
 {
-  WND* wnd = WIN_FindWndPtr(hWnd);
+  LONG exstyle;
   
-  if( wnd )
-    wnd->dwExStyle = b? wnd->dwExStyle | WS_EX_ACCEPTFILES
-                      : wnd->dwExStyle & ~WS_EX_ACCEPTFILES;
+  
+  if( !IsWindow(hWnd) )
+  	return;
+  exstyle = GetWindowLongA(hWnd,GWL_EXSTYLE);
+  if (b)exstyle |= WS_EX_ACCEPTFILES;
+  else	exstyle &= ~WS_EX_ACCEPTFILES;
+  SetWindowLongA(hWnd,GWL_EXSTYLE,exstyle);
 }
 
 /*************************************************************************
-- 
GitLab