Commit 9ea8b184 authored by Tim Clem's avatar Tim Clem Committed by Alexandre Julliard

dplayx: Map global memory anywhere if the standard address is unavailable.

parent ef33382d
......@@ -418,6 +418,15 @@ BOOL DPLAYX_ConstructData(void)
FILE_MAP_WRITE,
0, 0, 0, lpDesiredMemoryMapStart );
if( lpSharedStaticData == NULL && GetLastError() == ERROR_INVALID_ADDRESS )
{
/* We couldn't map the data where we wanted. Try again, allowing any
* location. */
lpSharedStaticData = MapViewOfFile( hDplayxSharedMem,
FILE_MAP_WRITE,
0, 0, 0 );
}
if( lpSharedStaticData == NULL )
{
ERR( ": unable to map static data into process memory space (%d)\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment