Martijn Laan 1 rok temu
rodzic
commit
bdc5fb15a4
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Components/ScintEdit.pas

+ 1 - 1
Components/ScintEdit.pas

@@ -693,7 +693,7 @@ begin
   FDirectPtr := Pointer(SendMessage(Handle, SCI_GETDIRECTPOINTER, 0, 0));
   FDirectPtr := Pointer(SendMessage(Handle, SCI_GETDIRECTPOINTER, 0, 0));
   if FDirectPtr = nil then
   if FDirectPtr = nil then
     Error('CreateWnd: FDirectPtr is nil');
     Error('CreateWnd: FDirectPtr is nil');
-  FDirectStatusFunction := SciFnDirectStatus(SendMessage(Handle, SCI_GETDIRECTSTATUSFUNCTION, WPARAM(FDirectPtr), 0));
+  FDirectStatusFunction := SciFnDirectStatus(SendMessage(Handle, SCI_GETDIRECTSTATUSFUNCTION, 0, 0));
   if not Assigned(FDirectStatusFunction) then
   if not Assigned(FDirectStatusFunction) then
     Error('CreateWnd: FDirectStatusFunction is nil');
     Error('CreateWnd: FDirectStatusFunction is nil');
   UpdateCodePage;
   UpdateCodePage;