mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
[KERNEL32]: Clarify the difference between the macro and Basep8BitStringToStaticUnicodeString.
svn path=/trunk/; revision=52779
This commit is contained in:
parent
278fb2f2b6
commit
2374f5b1aa
1 changed files with 8 additions and 0 deletions
|
@ -22,6 +22,14 @@
|
|||
// It returns the correct ERROR_FILENAME_EXCED_RANGE Win32 error when the path
|
||||
// is too long.
|
||||
//
|
||||
// Note that Basep8BitStringToStaticUnicodeString looks deceptively similar.
|
||||
// However, that function was designed for File APIs, which can be switched into
|
||||
// a special "OEM" mode, that uses different NLS files/encoding, and thus calls
|
||||
// RtlOemStringToAnsiString (see SetFileApisToOEM). Thererefore, this macro and
|
||||
// that function are not interchangeable. As a separate note, that function uses
|
||||
// the *Ex version of the Rtl conversion APIs, which does stricter checking that
|
||||
// is not done when this macro is used.
|
||||
//
|
||||
#define ConvertAnsiToUnicodePrologue \
|
||||
{ \
|
||||
NTSTATUS Status; \
|
||||
|
|
Loading…
Reference in a new issue