Nikolay Sivov : kernel32: Implemented GetErrorMode().

Alexandre Julliard julliard at winehq.org
Tue Jan 13 10:56:42 CST 2009


Module: wine
Branch: master
Commit: 2013cdc604a678aba185edc1557a508f880f179a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2013cdc604a678aba185edc1557a508f880f179a

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Mon Jan 12 23:54:12 2009 +0300

kernel32: Implemented GetErrorMode().

---

 dlls/kernel32/kernel32.spec |    2 +-
 dlls/kernel32/process.c     |    7 +++++++
 include/winbase.h           |    1 +
 3 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index c38d27f..13c7cd4 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -513,7 +513,7 @@
 @ stdcall GetEnvironmentStringsW()
 @ stdcall GetEnvironmentVariableA(str ptr long)
 @ stdcall GetEnvironmentVariableW(wstr ptr long)
-@ stub GetErrorMode
+@ stdcall GetErrorMode()
 @ stdcall GetExitCodeProcess(long ptr)
 @ stdcall GetExitCodeThread(long ptr)
 @ stdcall GetExpandedNameA(str ptr)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 8b1fb9f..942b97a 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -2238,6 +2238,13 @@ UINT WINAPI SetErrorMode( UINT mode )
     return old;
 }
 
+/***********************************************************************
+ *           GetErrorMode   (KERNEL32.@)
+ */
+UINT WINAPI GetErrorMode( void )
+{
+    return process_error_mode;
+}
 
 /**********************************************************************
  * TlsAlloc             [KERNEL32.@]
diff --git a/include/winbase.h b/include/winbase.h
index 521bb16..f7a2854 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -1604,6 +1604,7 @@ WINBASEAPI LPWSTR      WINAPI GetEnvironmentStringsW(void);
 WINBASEAPI DWORD       WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
 WINBASEAPI DWORD       WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
 #define                       GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
+WINBASEAPI UINT        WINAPI GetErrorMode(void);
 WINBASEAPI BOOL        WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
 WINBASEAPI BOOL        WINAPI GetExitCodeThread(HANDLE,LPDWORD);
 WINBASEAPI DWORD       WINAPI GetFileAttributesA(LPCSTR);




More information about the wine-cvs mailing list