]> granicus.if.org Git - vim/commitdiff
patch 8.0.1473: MS-Windows: D&D fails between 32 and 64 bit apps v8.0.1473
authorBram Moolenaar <Bram@vim.org>
Sun, 4 Feb 2018 18:37:40 +0000 (19:37 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 4 Feb 2018 18:37:40 +0000 (19:37 +0100)
Problem:    MS-Windows: D&D fails between 32 and 64 bit apps.
Solution:   Add the /HIGHENTROPYVA:NO linker option. (Ken Takata, closes #2504)

src/Make_mvc.mak
src/version.c

index b496e5a5c21cf8f0777661dbbd636b719026071e..c2e808c954adbe5abaa7e3131b20daaa2b53fdbd 100644 (file)
@@ -1179,6 +1179,13 @@ LINKARGS1 = $(LINKARGS1) /LTCG:STATUS
 !endif
 !endif
 
+!if $(MSVC_MAJOR) >= 11 && "$(CPU)" == "AMD64" && "$(GUI)" == "yes"
+# This option is required for VC2012 or later so that 64-bit gvim can
+# accept D&D from 32-bit applications.  NOTE: This disables 64-bit ASLR,
+# therefore the security level becomes as same as VC2010.
+LINKARGS1 = $(LINKARGS1) /HIGHENTROPYVA:NO
+!endif
+
 all:   $(VIM).exe \
        vimrun.exe \
        install.exe \
index 5c4e17ba9cad10747326309b918e50a36d0928aa..8f3430399981bd7a47f899dcdac13169cf0547d7 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1473,
 /**/
     1472,
 /**/