Piotr Caban : msvcrt: Don't forward _getpid to kernel32.
Alexandre Julliard
julliard at winehq.org
Wed Mar 27 15:40:07 CDT 2013
Module: wine
Branch: master
Commit: db58873868c7286b5bdeca7e5b30938d49a6ca1f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=db58873868c7286b5bdeca7e5b30938d49a6ca1f
Author: Piotr Caban <piotr at codeweavers.com>
Date: Wed Mar 27 16:13:43 2013 +0100
msvcrt: Don't forward _getpid to kernel32.
---
dlls/msvcrt/msvcrt.spec | 2 +-
dlls/msvcrt/process.c | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec
index 1236b58..dc87b8e 100644
--- a/dlls/msvcrt/msvcrt.spec
+++ b/dlls/msvcrt/msvcrt.spec
@@ -526,7 +526,7 @@
@ cdecl _getdrives() kernel32.GetLogicalDrives
@ cdecl _getmaxstdio() MSVCRT__getmaxstdio
@ cdecl _getmbcp()
-@ cdecl _getpid() kernel32.GetCurrentProcessId
+@ cdecl _getpid() _getpid
@ stub _getsystime(ptr)
@ cdecl _getw(ptr) MSVCRT__getw
# stub _getwch()
diff --git a/dlls/msvcrt/process.c b/dlls/msvcrt/process.c
index cc64c2d..872edf8 100644
--- a/dlls/msvcrt/process.c
+++ b/dlls/msvcrt/process.c
@@ -1317,3 +1317,11 @@ void * CDECL _getdllprocaddr(MSVCRT_intptr_t dll, const char *name, int ordinal)
if (HIWORD(ordinal)) return NULL;
return GetProcAddress( (HMODULE)dll, (LPCSTR)(ULONG_PTR)ordinal );
}
+
+/*********************************************************************
+ * _getpid (MSVCRT.@)
+ */
+int CDECL _getpid(void)
+{
+ return GetCurrentProcessId();
+}
More information about the wine-cvs
mailing list