gerard patel <[EMAIL PROTECTED]> writes:
> The Word viewer 16 bits crash comes immediately after calling GetDosEnvironment;
> pTask->pdb.environment = 0
This should fix it (and the SetWindowsHook problem too):
Index: scheduler/thread.c
===================================================================
RCS file: /home/wine/wine/scheduler/thread.c,v
retrieving revision 1.65
diff -u -r1.65 thread.c
--- scheduler/thread.c 2000/05/03 17:45:14 1.65
+++ scheduler/thread.c 2000/05/28 19:12:09
@@ -296,6 +296,7 @@
teb->entry_point = start;
teb->entry_arg = param;
teb->startup = THREAD_Start;
+ teb->htask16 = GetCurrentTask();
if (id) *id = (DWORD)tid;
if (SYSDEPS_SpawnThread( teb ) == -1)
{
Index: memory/environ.c
===================================================================
RCS file: /home/wine/wine/memory/environ.c,v
retrieving revision 1.10
diff -u -r1.10 environ.c
--- memory/environ.c 2000/05/01 16:24:23 1.10
+++ memory/environ.c 2000/05/28 19:25:49
@@ -82,6 +82,8 @@
if (!(p = HeapAlloc( GetProcessHeap(), 0, size ))) return FALSE;
PROCESS_Current()->env_db->environ = p;
+ PROCESS_Current()->env_db->env_sel = SELECTOR_AllocBlock( p, 0x10000,
+SEGMENT_DATA,
+ FALSE, FALSE );
/* And fill it with the Unix environment */
--
Alexandre Julliard
[EMAIL PROTECTED]