Author: hbelusca
Date: Wed Jan 16 00:28:09 2013
New Revision: 58183
URL:
http://svn.reactos.org/svn/reactos?rev=58183&view=rev
Log:
[KERNEL32]
No need to use a UNICODE_STRING there.
Modified:
trunk/reactos/dll/win32/kernel32/client/file/find.c
Modified: trunk/reactos/dll/win32/kernel32/client/file/find.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/find.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/find.c [iso-8859-1] Wed Jan 16 00:28:09
2013
@@ -116,20 +116,21 @@
IN LPCWSTR lpFileName,
IN ULONG DeviceNameInfo)
{
- UNICODE_STRING DeviceName;
+ LPCWSTR DeviceName;
+ SIZE_T Length;
_SEH2_TRY
{
/* DeviceNameInfo == { USHORT Offset; USHORT Length } */
- DeviceName.Length = DeviceName.MaximumLength = (USHORT)(DeviceNameInfo &
0xFFFF);
- DeviceName.Buffer = (LPWSTR)((ULONG_PTR)lpFileName + ((DeviceNameInfo >>
16) & 0xFFFF));
+ Length = (SIZE_T)(DeviceNameInfo & 0xFFFF);
+ DeviceName = (LPCWSTR)((ULONG_PTR)lpFileName + ((DeviceNameInfo >> 16)
& 0xFFFF));
/* Return the data */
RtlZeroMemory(lpFindFileData, sizeof(*lpFindFileData));
lpFindFileData->dwFileAttributes = FILE_ATTRIBUTE_ARCHIVE;
RtlCopyMemory(lpFindFileData->cFileName,
- DeviceName.Buffer,
- DeviceName.Length);
+ DeviceName,
+ Length);
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{