Re: Borland C++ Builder 6.0 & Wine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2003-08-17 at 06:16, David Orriss Jr wrote:
> I use BCB (as a hobbist more than anything else).  Lemme get this
> straight, tho.  I have to patch Wine and then recompile the source to
> get BCB to work with it?  If that's the case, fine, but that's what the
> google groups thread seems to say.
Yes, you can use BCB after patching wine sources and recompile it.
I'm attaching an updated patch against the cvs (the one in the thread is
older and doesn't work in current sources), it should apply also on the
latest release.
At the moment I'm able to design without problems the forms, write the
code and compile and build the executable. The Run button doesn't work,
throw an Invalid Access in a borland dll.
I haven't tried the debug feature, but I think it won't work, 'cause I
can't even run the program from the IDE....
At least, BCB seems usable for maitenance of small softwares.
-- 
Flameeyes <dgp85@users.sf.net>
Index: dlls/ntdll/virtual.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/virtual.c,v
retrieving revision 1.9
diff -u -3 -r1.9 virtual.c
--- dlls/ntdll/virtual.c	12 Aug 2003 23:50:55 -0000	1.9
+++ dlls/ntdll/virtual.c	17 Aug 2003 11:15:57 -0000
@@ -1203,6 +1203,8 @@
         return STATUS_ACCESS_DENIED;
     }
 
+    VirtualAlloc( 0x80000000, 0x1000, MEM_RESERVE | MEM_SYSTEM, PAGE_EXECUTE_READWRITE );
+
     base = ROUND_ADDR( addr, page_mask );
 
     /* Find the view containing the address */
@@ -1255,6 +1257,8 @@
     info->BaseAddress    = (LPVOID)base;
     info->AllocationBase = (LPVOID)alloc_base;
     info->RegionSize     = size - (base - alloc_base);
+    if ((info->BaseAddress + info->RegionSize) > 0xc0000000)
+        info->RegionSize = 0xc0000000 - (DWORD)info->BaseAddress;
     if (res_len) *res_len = sizeof(*info);
     return STATUS_SUCCESS;
 }

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux