From 9ec9c2b10475057918cd420140a92885b369eb28 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Mon, 5 Mar 2001 20:10:43 +0000 Subject: [PATCH] Implemented SetFileApisToOEM, SetFileApisToANSI and AreFileApisANSI. --- scheduler/process.c | 31 +++++++++++++++++++++++++++++++ win32/file.c | 33 --------------------------------- 2 files changed, 31 insertions(+), 33 deletions(-) diff --git a/scheduler/process.c b/scheduler/process.c index ac85e655b59..39ab851ac77 100644 --- a/scheduler/process.c +++ b/scheduler/process.c @@ -1421,6 +1421,37 @@ UINT WINAPI SetErrorMode( UINT mode ) } +/************************************************************************** + * SetFileApisToOEM (KERNEL32.@) + */ +VOID WINAPI SetFileApisToOEM(void) +{ + current_process.flags |= PDB32_FILE_APIS_OEM; +} + + +/************************************************************************** + * SetFileApisToANSI (KERNEL32.@) + */ +VOID WINAPI SetFileApisToANSI(void) +{ + current_process.flags &= ~PDB32_FILE_APIS_OEM; +} + + +/****************************************************************************** + * AreFileApisANSI [KERNEL32.@] Determines if file functions are using ANSI + * + * RETURNS + * TRUE: Set of file functions is using ANSI code page + * FALSE: Set of file functions is using OEM code page + */ +BOOL WINAPI AreFileApisANSI(void) +{ + return !(current_process.flags & PDB32_FILE_APIS_OEM); +} + + /********************************************************************** * TlsAlloc [KERNEL32.@] Allocates a TLS index. * diff --git a/win32/file.c b/win32/file.c index 07907c594a7..c6470ed880f 100644 --- a/win32/file.c +++ b/win32/file.c @@ -119,36 +119,3 @@ BOOL WINAPI SetFileAttributesW(LPCWSTR lpFileName, DWORD attributes) HeapFree( GetProcessHeap(), 0, afn ); return res; } - - -/************************************************************************** - * SetFileApisToOEM (KERNEL32.645) - */ -VOID WINAPI SetFileApisToOEM(void) -{ - /*FIXME(file,"(): stub!\n");*/ -} - - -/************************************************************************** - * SetFileApisToANSI (KERNEL32.644) - */ -VOID WINAPI SetFileApisToANSI(void) -{ - /*FIXME(file,"(): stub\n");*/ -} - - -/****************************************************************************** - * AreFileApisANSI [KERNEL32.@] Determines if file functions are using ANSI - * - * RETURNS - * TRUE: Set of file functions is using ANSI code page - * FALSE: Set of file functions is using OEM code page - */ -BOOL WINAPI AreFileApisANSI(void) -{ - FIXME("(void): stub\n"); - return TRUE; -} - -- 2.11.4.GIT