From f98fb85e72d0f24c58d9e54b8b3bff2c67f985fb Mon Sep 17 00:00:00 2001 From: Rama Krishnan Raghupathy Date: Thu, 18 Feb 2016 18:21:18 -0800 Subject: This Change Adds initial Support for LongFiles in the VM, They are: 1. Wrappers for OS APIs which take or return PATHS 2. Fixing the usage of following Api's: GetEnvironmentVariableW SearchPathW GetShortPathNameW GetLongPathNameW GetModuleFileName Work remaining: Remove fixed size buffers in the VM --- src/inc/sstring.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/inc/sstring.h') diff --git a/src/inc/sstring.h b/src/inc/sstring.h index 3c5107a06c..bfbaa81429 100644 --- a/src/inc/sstring.h +++ b/src/inc/sstring.h @@ -625,6 +625,9 @@ private: UTF8 *OpenUTF8Buffer(COUNT_T maxSingleCharCount); ANSI *OpenANSIBuffer(COUNT_T maxSingleCharCount); + //Returns the unicode string, the caller is reponsible for lifetime of the string + WCHAR *GetCopyOfUnicodeString(); + // Get the max size that can be passed to OpenUnicodeBuffer without causing allocations. COUNT_T GetUnicodeAllocation(); @@ -1009,9 +1012,11 @@ typedef InlineSString<32> SmallStackSString; #ifdef _DEBUG // This is a smaller version for debug builds to exercise the buffer allocation path typedef InlineSString<32> PathString; +typedef InlineSString<2 * 32> LongPathString; #else // Set it to the current MAX_PATH typedef InlineSString<260> PathString; +typedef InlineSString<2 * 260> LongPathString; #endif // ================================================================================ -- cgit v1.2.3