CVS: winex/memory virtual.c,1.40,1.41
[email protected] 12 Sep 2007 12:22:49 -0000
| Newsgroups | gmane.comp.emulators.winex.cvs |
|---|---|
| Message-ID | <[email protected]> |
Subject: winex/memory virtual.c,1.40,1.41Update of /var/lib/cvsd/cvsroot/winex/memory
In directory agravaine:/tmp/cvs-serv8646/memory
Modified Files:
virtual.c
Log Message:
- changed the MapProcessHandle() function to GetProcessId(). MapProcessHandle() is still available through krnl386.exe
Index: virtual.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/memory/virtual.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- virtual.c 1 Aug 2007 12:32:28 -0000 1.40
+++ virtual.c 12 Sep 2007 12:22:47 -0000 1.41
@@ -1457,7 +1457,7 @@
DWORD type, /* [in] Type of allocation */
DWORD protect /* [in] Type of access protection */
) {
- DWORD pid = MapProcessHandle( hProcess );
+ DWORD pid = GetProcessId( hProcess );
LPVOID ret = NULL;
DWORD err = 0;
HANDLE event = 0;
@@ -1619,7 +1619,7 @@
DWORD size, /* [in] Size of region */
DWORD type /* [in] Type of operation */
) {
- DWORD pid = MapProcessHandle( hProcess );
+ DWORD pid = GetProcessId( hProcess );
DWORD err = 0;
HANDLE event = 0;
struct ex_vfree ex;
@@ -1787,7 +1787,7 @@
DWORD new_prot, /* [in] Desired access protection */
LPDWORD old_prot /* [out] Address of variable to get old protection */ )
{
- if (MapProcessHandle( handle ) == GetCurrentProcessId())
+ if (GetProcessId( handle ) == GetCurrentProcessId())
return VirtualProtect( addr, size, new_prot, old_prot );
ERR("Unsupported on other process\n");
return FALSE;
@@ -1887,7 +1887,7 @@
LPMEMORY_BASIC_INFORMATION info, /* [out] Address of info buffer */
DWORD len /* [in] Size of buffer */ )
{
- if (MapProcessHandle( handle ) == GetCurrentProcessId())
+ if (GetProcessId( handle ) == GetCurrentProcessId())
return VirtualQuery( addr, info, len );
ERR("Unsupported on other process\n");
return 0;