[Wine-patches] [eterhack] Revert "Revert "preloader: Silence the warning for the low 64k.""

Alexander Morozov amorozov на etersoft.ru
Пн Окт 12 13:15:05 MSD 2009


----------- следующая часть -----------
From fdc90683fcaf05b89fbbcf7b0e17004184ec12d1 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Mon, 12 Oct 2009 13:06:17 +0400
Subject: [eterhack] Revert "Revert "preloader: Silence the warning for the low 64k.""

This reverts commit 3cdf3c694497dba136febea38a928e0ec8806972.
---
 loader/preloader.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/loader/preloader.c b/loader/preloader.c
index ad6d12b..9e87356 100644
--- a/loader/preloader.c
+++ b/loader/preloader.c
@@ -1111,8 +1111,10 @@ void* wld_start( void **stack )
         if (wld_mmap( preload_info[i].addr, preload_info[i].size, PROT_NONE,
                       MAP_FIXED | MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, -1, 0 ) == (void *)-1)
         {
-            wld_printf( "preloader: Warning: failed to reserve range %p-%p\n",
-                        preload_info[i].addr, (char *)preload_info[i].addr + preload_info[i].size );
+            /* don't warn for low 64k */
+            if (preload_info[i].addr >= (void *)0x10000)
+                wld_printf( "preloader: Warning: failed to reserve range %p-%p\n",
+                            preload_info[i].addr, (char *)preload_info[i].addr + preload_info[i].size );
             remove_preload_range( i );
             i--;
         }
-- 
1.6.4.4



Подробная информация о списке рассылки Wine-patches