Commit 1357589e authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Alexandre Julliard

msvcrt: Add _get_pgmptr and _get_wpgmptr.

parent d621accb
...@@ -685,14 +685,14 @@ ...@@ -685,14 +685,14 @@
@ cdecl _get_invalid_parameter_handler() msvcrt._get_invalid_parameter_handler @ cdecl _get_invalid_parameter_handler() msvcrt._get_invalid_parameter_handler
@ cdecl _get_osfhandle(long) msvcrt._get_osfhandle @ cdecl _get_osfhandle(long) msvcrt._get_osfhandle
@ cdecl _get_output_format() msvcrt._get_output_format @ cdecl _get_output_format() msvcrt._get_output_format
@ stub _get_pgmptr @ cdecl _get_pgmptr(ptr) msvcrt._get_pgmptr
@ cdecl _get_printf_count_output() msvcrt._get_printf_count_output @ cdecl _get_printf_count_output() msvcrt._get_printf_count_output
@ stub _get_purecall_handler @ stub _get_purecall_handler
@ cdecl _get_terminate() msvcrt._get_terminate @ cdecl _get_terminate() msvcrt._get_terminate
@ stub _get_timezone @ stub _get_timezone
@ cdecl _get_tzname(ptr str long long) msvcrt._get_tzname @ cdecl _get_tzname(ptr str long long) msvcrt._get_tzname
@ cdecl _get_unexpected() msvcrt._get_unexpected @ cdecl _get_unexpected() msvcrt._get_unexpected
@ stub _get_wpgmptr @ cdecl _get_wpgmptr(ptr) msvcrt._get_wpgmptr
@ stub _getc_nolock @ stub _getc_nolock
@ cdecl _getch() msvcrt._getch @ cdecl _getch() msvcrt._getch
@ stub _getch_nolock @ stub _getch_nolock
......
...@@ -529,7 +529,7 @@ ...@@ -529,7 +529,7 @@
@ cdecl _get_osplatform(ptr) msvcrt._get_osplatform @ cdecl _get_osplatform(ptr) msvcrt._get_osplatform
@ stub _get_osver @ stub _get_osver
@ cdecl _get_output_format() msvcrt._get_output_format @ cdecl _get_output_format() msvcrt._get_output_format
@ stub _get_pgmptr @ cdecl _get_pgmptr(ptr) msvcrt._get_pgmptr
@ cdecl _get_printf_count_output() msvcrt._get_printf_count_output @ cdecl _get_printf_count_output() msvcrt._get_printf_count_output
@ stub _get_purecall_handler @ stub _get_purecall_handler
@ cdecl _get_sbh_threshold() msvcrt._get_sbh_threshold @ cdecl _get_sbh_threshold() msvcrt._get_sbh_threshold
...@@ -540,7 +540,7 @@ ...@@ -540,7 +540,7 @@
@ stub _get_winmajor @ stub _get_winmajor
@ stub _get_winminor @ stub _get_winminor
@ stub _get_winver @ stub _get_winver
@ stub _get_wpgmptr @ cdecl _get_wpgmptr(ptr) msvcrt._get_wpgmptr
@ cdecl _getch() msvcrt._getch @ cdecl _getch() msvcrt._getch
@ stub _getch_nolock @ stub _getch_nolock
@ cdecl _getche() msvcrt._getche @ cdecl _getche() msvcrt._getche
......
...@@ -519,7 +519,7 @@ ...@@ -519,7 +519,7 @@
@ cdecl _get_invalid_parameter_handler() msvcrt._get_invalid_parameter_handler @ cdecl _get_invalid_parameter_handler() msvcrt._get_invalid_parameter_handler
@ cdecl _get_osfhandle(long) msvcrt._get_osfhandle @ cdecl _get_osfhandle(long) msvcrt._get_osfhandle
@ cdecl _get_output_format() msvcrt._get_output_format @ cdecl _get_output_format() msvcrt._get_output_format
@ stub _get_pgmptr @ cdecl _get_pgmptr(ptr) msvcrt._get_pgmptr
@ cdecl _get_printf_count_output() msvcrt._get_printf_count_output @ cdecl _get_printf_count_output() msvcrt._get_printf_count_output
@ stub _get_purecall_handler @ stub _get_purecall_handler
@ cdecl _get_sbh_threshold() msvcrt._get_sbh_threshold @ cdecl _get_sbh_threshold() msvcrt._get_sbh_threshold
...@@ -527,7 +527,7 @@ ...@@ -527,7 +527,7 @@
@ stub _get_timezone @ stub _get_timezone
@ cdecl _get_tzname(ptr str long long) msvcrt._get_tzname @ cdecl _get_tzname(ptr str long long) msvcrt._get_tzname
@ cdecl _get_unexpected() msvcrt._get_unexpected @ cdecl _get_unexpected() msvcrt._get_unexpected
@ stub _get_wpgmptr @ cdecl _get_wpgmptr(ptr) msvcrt._get_wpgmptr
@ stub _getc_nolock @ stub _getc_nolock
@ cdecl _getch() msvcrt._getch @ cdecl _getch() msvcrt._getch
@ stub _getch_nolock @ stub _getch_nolock
......
...@@ -156,6 +156,36 @@ char** CDECL __p__pgmptr(void) { return &MSVCRT__pgmptr; } ...@@ -156,6 +156,36 @@ char** CDECL __p__pgmptr(void) { return &MSVCRT__pgmptr; }
WCHAR** CDECL __p__wpgmptr(void) { return &MSVCRT__wpgmptr; } WCHAR** CDECL __p__wpgmptr(void) { return &MSVCRT__wpgmptr; }
/*********************************************************************** /***********************************************************************
* _get_pgmptr (MSVCRT.@)
*/
int CDECL _get_pgmptr(char** p)
{
if (!MSVCRT_CHECK_PMT(p))
{
*MSVCRT__errno() = MSVCRT_EINVAL;
return MSVCRT_EINVAL;
}
*p = MSVCRT__pgmptr;
return 0;
}
/***********************************************************************
* _get_wpgmptr (MSVCRT.@)
*/
int CDECL _get_wpgmptr(WCHAR** p)
{
if (!MSVCRT_CHECK_PMT(p))
{
*MSVCRT__errno() = MSVCRT_EINVAL;
return MSVCRT_EINVAL;
}
*p = MSVCRT__wpgmptr;
return 0;
}
/***********************************************************************
* __p__fmode (MSVCRT.@) * __p__fmode (MSVCRT.@)
*/ */
unsigned int* CDECL __p__fmode(void) { return &MSVCRT__fmode; } unsigned int* CDECL __p__fmode(void) { return &MSVCRT__fmode; }
......
...@@ -480,13 +480,13 @@ ...@@ -480,13 +480,13 @@
@ cdecl _get_osplatform(ptr) MSVCRT__get_osplatform @ cdecl _get_osplatform(ptr) MSVCRT__get_osplatform
# stub _get_osver(ptr) # stub _get_osver(ptr)
@ cdecl _get_output_format() @ cdecl _get_output_format()
# stub _get_pgmptr(ptr) @ cdecl _get_pgmptr(ptr)
@ cdecl _get_sbh_threshold() @ cdecl _get_sbh_threshold()
# stub _get_wenviron(ptr) # stub _get_wenviron(ptr)
# stub _get_winmajor(ptr) # stub _get_winmajor(ptr)
# stub _get_winminor(ptr) # stub _get_winminor(ptr)
# stub _get_winver(ptr) # stub _get_winver(ptr)
# stub _get_wpgmptr(ptr) @ cdecl _get_wpgmptr(ptr)
@ cdecl _get_terminate() MSVCRT__get_terminate @ cdecl _get_terminate() MSVCRT__get_terminate
@ cdecl _get_tzname(ptr str long long) MSVCRT__get_tzname @ cdecl _get_tzname(ptr str long long) MSVCRT__get_tzname
@ cdecl _get_unexpected() MSVCRT__get_unexpected @ cdecl _get_unexpected() MSVCRT__get_unexpected
......
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