]> gitweb.factorcode.org Git - factor.git/commitdiff
windows.dragdrop-listener: replace set-ulong-nth with set-alien-unsigned-4
authorAlexander Iljin <ajsoft@yandex.ru>
Sat, 12 Aug 2017 13:32:41 +0000 (16:32 +0300)
committerAlexander Iljin <ajsoft@yandex.ru>
Thu, 17 Aug 2017 23:21:50 +0000 (02:21 +0300)
basis/windows/dragdrop-listener/dragdrop-listener.factor

index 5f3f12b22773c8f0895462916175cfc123a2afcc..20ea98ed1adcd60f13116a3a6bdb0e35ad31ae7e 100644 (file)
@@ -42,12 +42,12 @@ SYMBOL: +listener-dragdrop-wrapper+
                 2drop
                 filenames-from-data-object
                 length 1 = [ DROPEFFECT_COPY ] [ DROPEFFECT_NONE ] if
-                dup 0
-            ] dip set-ulong-nth
+                dup
+            ] dip 0 set-alien-unsigned-4
             >>last-drop-effect drop
             S_OK
         ] [ ! DragOver
-            [ 2drop last-drop-effect>> 0 ] dip set-ulong-nth
+            [ 2drop last-drop-effect>> ] dip 0 set-alien-unsigned-4
             S_OK
         ] [ ! DragLeave
             drop S_OK
@@ -60,8 +60,7 @@ SYMBOL: +listener-dragdrop-wrapper+
                     eval-listener
                     DROPEFFECT_COPY
                 ] [ 2drop DROPEFFECT_NONE ] if
-                0
-            ] dip set-ulong-nth
+            ] dip 0 set-alien-unsigned-4
             S_OK
         ]
     } }