CVS: winex/dlls/psapi psapi_main.c,1.9,1.10
[email protected] 12 Sep 2007 12:21:47 -0000
| Newsgroups | gmane.comp.emulators.winex.cvs |
|---|---|
| Message-ID | <[email protected]> |
Subject: winex/dlls/psapi psapi_main.c,1.9,1.10Update of /var/lib/cvsd/cvsroot/winex/dlls/psapi
In directory agravaine:/tmp/cvs-serv8333/dlls/psapi
Modified Files:
psapi_main.c
Log Message:
- changed the MapProcessHandle() function to GetProcessId(). MapProcessHandle() is still available through krnl386.exe
Index: psapi_main.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/psapi/psapi_main.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- psapi_main.c 12 Sep 2007 12:13:31 -0000 1.9
+++ psapi_main.c 12 Sep 2007 12:21:45 -0000 1.10
@@ -117,7 +117,7 @@
TRACE("(hProcess=0x%08x, %p, %ld, %p)\n", hProcess, lphModule, cb, lpcbNeeded );
- pid = MapProcessHandle( hProcess ); /* FIXME: use GetProcessId if we implement it */
+ pid = GetProcessId( hProcess );
TRACE("using pid=%ld\n", pid);
snapshot = CreateToolhelp32Snapshot( TH32CS_SNAPMODULE, pid);
if( snapshot == INVALID_HANDLE_VALUE ) return FALSE;
@@ -301,7 +301,7 @@
if(lpFilename&&nSize)
lpFilename[0]='\0';
- pid = MapProcessHandle( hProcess ); /* FIXME: use GetProcessId if we implement it */
+ pid = GetProcessId( hProcess );
TRACE("using pid=%ld\n", pid);
if (pid == GetCurrentProcessId ())
@@ -391,7 +391,7 @@
if( !hModule )
FIXME("get EXE name of hProcess\n");
- pid = MapProcessHandle( hProcess ); /* FIXME: use GetProcessId if we implement it */
+ pid = GetProcessId( hProcess );
TRACE("using pid=%ld\n", pid);
snapshot = CreateToolhelp32Snapshot( TH32CS_SNAPMODULE, pid);
if( snapshot == INVALID_HANDLE_VALUE ) return FALSE;