ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
October 2014
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
19 participants
730 discussions
Start a n
N
ew thread
[pschweitzer] 65032: [FASTFAT] s/DeviceObject/DeviceExt/g
by pschweitzer@svn.reactos.org
Author: pschweitzer Date: Sun Oct 26 20:23:07 2014 New Revision: 65032 URL:
http://svn.reactos.org/svn/reactos?rev=65032&view=rev
Log: [FASTFAT] s/DeviceObject/DeviceExt/g Modified: trunk/reactos/drivers/filesystems/fastfat/finfo.c Modified: trunk/reactos/drivers/filesystems/fastfat/finfo.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
============================================================================== --- trunk/reactos/drivers/filesystems/fastfat/finfo.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fastfat/finfo.c [iso-8859-1] Sun Oct 26 20:23:07 2014 @@ -455,7 +455,7 @@ VfatSetRenameInformation( PFILE_OBJECT FileObject, PVFATFCB FCB, - PDEVICE_EXTENSION DeviceObject, + PDEVICE_EXTENSION DeviceExt, PFILE_RENAME_INFORMATION RenameInfo, PFILE_OBJECT TargetFileObject) { @@ -474,7 +474,7 @@ HANDLE TargetHandle; BOOLEAN DeletedTarget; - DPRINT("VfatSetRenameInfo(%p, %p, %p, %p, %p)\n", FileObject, FCB, DeviceObject, RenameInfo, TargetFileObject); + DPRINT("VfatSetRenameInfo(%p, %p, %p, %p, %p)\n", FileObject, FCB, DeviceExt, RenameInfo, TargetFileObject); /* Disallow renaming root */ if (vfatFCBIsRoot(FCB)) @@ -691,8 +691,8 @@ if (FsRtlAreNamesEqual(&SourceFile, &NewFile, TRUE, NULL)) { - FsRtlNotifyFullReportChange(DeviceObject->NotifySync, - &(DeviceObject->NotifyList), + FsRtlNotifyFullReportChange(DeviceExt->NotifySync, + &(DeviceExt->NotifyList), (PSTRING)&FCB->PathNameU, FCB->PathNameU.Length - FCB->LongNameU.Length, NULL, @@ -701,11 +701,11 @@ FILE_NOTIFY_CHANGE_DIR_NAME : FILE_NOTIFY_CHANGE_FILE_NAME), FILE_ACTION_RENAMED_OLD_NAME, NULL); - Status = vfatRenameEntry(DeviceObject, FCB, &NewFile, TRUE); + Status = vfatRenameEntry(DeviceExt, FCB, &NewFile, TRUE); if (NT_SUCCESS(Status)) { - FsRtlNotifyFullReportChange(DeviceObject->NotifySync, - &(DeviceObject->NotifyList), + FsRtlNotifyFullReportChange(DeviceExt->NotifySync, + &(DeviceExt->NotifyList), (PSTRING)&FCB->PathNameU, FCB->PathNameU.Length - FCB->LongNameU.Length, NULL, @@ -720,8 +720,8 @@ { /* Try to find target */ ParentFCB = FCB->parentFcb; - vfatGrabFCB(DeviceObject, ParentFCB); - Status = vfatPrepareTargetForRename(DeviceObject, + vfatGrabFCB(DeviceExt, ParentFCB); + Status = vfatPrepareTargetForRename(DeviceExt, &ParentFCB, &NewFile, RenameInfo->ReplaceIfExists, @@ -732,8 +732,8 @@ goto Cleanup; } - FsRtlNotifyFullReportChange(DeviceObject->NotifySync, - &(DeviceObject->NotifyList), + FsRtlNotifyFullReportChange(DeviceExt->NotifySync, + &(DeviceExt->NotifyList), (PSTRING)&FCB->PathNameU, FCB->PathNameU.Length - FCB->LongNameU.Length, NULL, @@ -742,13 +742,13 @@ FILE_NOTIFY_CHANGE_DIR_NAME : FILE_NOTIFY_CHANGE_FILE_NAME), (DeletedTarget ? FILE_ACTION_REMOVED : FILE_ACTION_RENAMED_OLD_NAME), NULL); - Status = vfatRenameEntry(DeviceObject, FCB, &NewFile, FALSE); + Status = vfatRenameEntry(DeviceExt, FCB, &NewFile, FALSE); if (NT_SUCCESS(Status)) { if (DeletedTarget) { - FsRtlNotifyFullReportChange(DeviceObject->NotifySync, - &(DeviceObject->NotifyList), + FsRtlNotifyFullReportChange(DeviceExt->NotifySync, + &(DeviceExt->NotifyList), (PSTRING)&FCB->PathNameU, FCB->PathNameU.Length - FCB->LongNameU.Length, NULL, @@ -760,8 +760,8 @@ } else { - FsRtlNotifyFullReportChange(DeviceObject->NotifySync, - &(DeviceObject->NotifyList), + FsRtlNotifyFullReportChange(DeviceExt->NotifySync, + &(DeviceExt->NotifyList), (PSTRING)&FCB->PathNameU, FCB->PathNameU.Length - FCB->LongNameU.Length, NULL, @@ -778,7 +778,7 @@ { /* Try to find target */ ParentFCB = NULL; - Status = vfatPrepareTargetForRename(DeviceObject, + Status = vfatPrepareTargetForRename(DeviceExt, &ParentFCB, &NewName, RenameInfo->ReplaceIfExists, @@ -789,8 +789,8 @@ goto Cleanup; } - FsRtlNotifyFullReportChange(DeviceObject->NotifySync, - &(DeviceObject->NotifyList), + FsRtlNotifyFullReportChange(DeviceExt->NotifySync, + &(DeviceExt->NotifyList), (PSTRING)&FCB->PathNameU, FCB->PathNameU.Length - FCB->LongNameU.Length, NULL, @@ -799,13 +799,13 @@ FILE_NOTIFY_CHANGE_DIR_NAME : FILE_NOTIFY_CHANGE_FILE_NAME), FILE_ACTION_REMOVED, NULL); - Status = VfatMoveEntry(DeviceObject, FCB, &NewFile, ParentFCB); + Status = VfatMoveEntry(DeviceExt, FCB, &NewFile, ParentFCB); if (NT_SUCCESS(Status)) { if (DeletedTarget) { - FsRtlNotifyFullReportChange(DeviceObject->NotifySync, - &(DeviceObject->NotifyList), + FsRtlNotifyFullReportChange(DeviceExt->NotifySync, + &(DeviceExt->NotifyList), (PSTRING)&FCB->PathNameU, FCB->PathNameU.Length - FCB->LongNameU.Length, NULL, @@ -817,8 +817,8 @@ } else { - FsRtlNotifyFullReportChange(DeviceObject->NotifySync, - &(DeviceObject->NotifyList), + FsRtlNotifyFullReportChange(DeviceExt->NotifySync, + &(DeviceExt->NotifyList), (PSTRING)&FCB->PathNameU, FCB->PathNameU.Length - FCB->LongNameU.Length, NULL, @@ -832,7 +832,7 @@ } Cleanup: - if (ParentFCB != NULL) vfatReleaseFCB(DeviceObject, ParentFCB); + if (ParentFCB != NULL) vfatReleaseFCB(DeviceExt, ParentFCB); if (NewName.Buffer != NULL) ExFreePoolWithTag(NewName.Buffer, TAG_VFAT); if (RenameInfo->RootDirectory != NULL) ObDereferenceObject(RootFileObject);
10 years, 2 months
1
0
0
0
[pschweitzer] 65031: [FASTFAT] Implement vfatGrabFCB() (which was defined but never implemented) for increasing the reference count on a FCB. This will make debugging easier. Dedicated to Thomas :-).
by pschweitzer@svn.reactos.org
Author: pschweitzer Date: Sun Oct 26 20:20:42 2014 New Revision: 65031 URL:
http://svn.reactos.org/svn/reactos?rev=65031&view=rev
Log: [FASTFAT] Implement vfatGrabFCB() (which was defined but never implemented) for increasing the reference count on a FCB. This will make debugging easier. Dedicated to Thomas :-). Modified: trunk/reactos/drivers/filesystems/fastfat/create.c trunk/reactos/drivers/filesystems/fastfat/fcb.c trunk/reactos/drivers/filesystems/fastfat/finfo.c Modified: trunk/reactos/drivers/filesystems/fastfat/create.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
============================================================================== --- trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] Sun Oct 26 20:20:42 2014 @@ -365,7 +365,7 @@ DPRINT("'%wZ'\n", &FileObject->RelatedFileObject->FileName); *ParentFcb = FileObject->RelatedFileObject->FsContext; - (*ParentFcb)->RefCount++; + vfatGrabFCB(DeviceExt, *ParentFcb); } else { @@ -391,7 +391,7 @@ if (*ParentFcb) { - (*ParentFcb)->RefCount++; + vfatGrabFCB(DeviceExt, *ParentFcb); } /* try first to find an existing FCB in memory */ @@ -497,7 +497,7 @@ pFcb = DeviceExt->VolumeFcb; vfatAttachFCBToFileObject(DeviceExt, pFcb, FileObject); - pFcb->RefCount++; + vfatGrabFCB(DeviceExt, pFcb); Irp->IoStatus.Information = FILE_OPENED; return STATUS_SUCCESS; @@ -562,7 +562,7 @@ if (Status == STATUS_SUCCESS) { - ParentFcb->RefCount++; + vfatGrabFCB(DeviceExt, ParentFcb); vfatReleaseFCB(DeviceExt, TargetFcb); Irp->IoStatus.Information = FILE_EXISTS; } Modified: trunk/reactos/drivers/filesystems/fastfat/fcb.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
============================================================================== --- trunk/reactos/drivers/filesystems/fastfat/fcb.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fastfat/fcb.c [iso-8859-1] Sun Oct 26 20:20:42 2014 @@ -288,6 +288,14 @@ } VOID +vfatGrabFCB( + PDEVICE_EXTENSION pVCB, + PVFATFCB pFCB) +{ + ++pFCB->RefCount; +} + +VOID vfatReleaseFCB( PDEVICE_EXTENSION pVCB, PVFATFCB pFCB) @@ -338,7 +346,7 @@ } if (pFCB->parentFcb) { - pFCB->parentFcb->RefCount++; + vfatGrabFCB(pVCB, pFCB->parentFcb); } } @@ -402,12 +410,6 @@ * We also derefence in case we're just renaming since AddFCBToTable references it */ vfatReleaseFCB(pVCB, OldParent); - - /* In case we were moving accross directories, reset caching on old parent */ - //if (OldParent != ParentFcb) - //{ - // CcUninitializeCacheMap(OldParent->FileObject, NULL, NULL); - //} return STATUS_SUCCESS; } @@ -455,7 +457,7 @@ DPRINT("'%wZ' '%wZ'\n", &FileNameU, FcbNameU); if (RtlEqualUnicodeString(&FileNameU, FcbNameU, TRUE)) { - rcFCB->RefCount++; + vfatGrabFCB(pVCB, rcFCB); return rcFCB; } } @@ -489,7 +491,7 @@ fileObject->FsContext = fcb; fileObject->FsContext2 = newCCB; fcb->FileObject = fileObject; - fcb->RefCount++; + vfatGrabFCB(vcb, fcb); _SEH2_TRY { @@ -655,7 +657,7 @@ rcFCB->RFCB.FileSize.QuadPart = Size; rcFCB->RFCB.ValidDataLength.QuadPart = Size; rcFCB->RFCB.AllocationSize.QuadPart = ROUND_UP(Size, vcb->FatInfo.BytesPerCluster); - rcFCB->RefCount++; + vfatGrabFCB(vcb, rcFCB); if (vfatFCBIsDirectory(rcFCB)) { vfatFCBInitializeCacheFromVolume(vcb, rcFCB); @@ -817,7 +819,7 @@ { *pFCB = FCB; *pParentFCB = FCB->parentFcb; - (*pParentFCB)->RefCount++; + vfatGrabFCB(pVCB, *pParentFCB); return STATUS_SUCCESS; } Modified: trunk/reactos/drivers/filesystems/fastfat/finfo.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
============================================================================== --- trunk/reactos/drivers/filesystems/fastfat/finfo.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fastfat/finfo.c [iso-8859-1] Sun Oct 26 20:20:42 2014 @@ -426,7 +426,7 @@ /* Effectively delete old file to allow renaming */ VfatDelEntry(DeviceExt, TargetFcb, NULL); - (*ParentFCB)->RefCount++; + vfatGrabFCB(DeviceExt, *ParentFCB); vfatReleaseFCB(DeviceExt, TargetFcb); *Deleted = TRUE; } @@ -720,7 +720,7 @@ { /* Try to find target */ ParentFCB = FCB->parentFcb; - ParentFCB->RefCount++; + vfatGrabFCB(DeviceObject, ParentFCB); Status = vfatPrepareTargetForRename(DeviceObject, &ParentFCB, &NewFile,
10 years, 2 months
1
0
0
0
[akhaldi] 65030: [ADVAPI32] * Update ConvertStringSidToSid{A, W}(). * Fixes some advapi32:security tests. CORE-8540
by akhaldi@svn.reactos.org
Author: akhaldi Date: Sun Oct 26 19:56:15 2014 New Revision: 65030 URL:
http://svn.reactos.org/svn/reactos?rev=65030&view=rev
Log: [ADVAPI32] * Update ConvertStringSidToSid{A,W}(). * Fixes some advapi32:security tests. CORE-8540 Modified: trunk/reactos/dll/win32/advapi32/wine/security.c Modified: trunk/reactos/dll/win32/advapi32/wine/security.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/wine/se…
============================================================================== --- trunk/reactos/dll/win32/advapi32/wine/security.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/advapi32/wine/security.c [iso-8859-1] Sun Oct 26 19:56:15 2014 @@ -279,6 +279,19 @@ { NULL, 0 }, }; +static LPWSTR SERV_dup( LPCSTR str ) +{ + UINT len; + LPWSTR wstr; + + if( !str ) + return NULL; + len = MultiByteToWideChar( CP_ACP, 0, str, -1, NULL, 0 ); + wstr = heap_alloc( len*sizeof (WCHAR) ); + MultiByteToWideChar( CP_ACP, 0, str, -1, wstr, len ); + return wstr; +} + /************************************************************ * ADVAPI_IsLocalComputer * @@ -3203,162 +3216,49 @@ } } -/* - * @implemented - */ -BOOL -WINAPI -ConvertStringSidToSidW(IN LPCWSTR StringSid, - OUT PSID* sid) -{ - DWORD size; - DWORD i, cBytes, identAuth, csubauth; - BOOL ret; - SID* pisid; - - TRACE("%s %p\n", debugstr_w(StringSid), sid); - - if (!StringSid) - { - SetLastError(ERROR_INVALID_SID); - return FALSE; - } - - for (i = 0; i < sizeof(SidTable) / sizeof(SidTable[0]) - 1; i++) - { - if (wcscmp(StringSid, SidTable[i].key) == 0) - { - WELL_KNOWN_SID_TYPE knownSid = (WELL_KNOWN_SID_TYPE)SidTable[i].value; - size = SECURITY_MAX_SID_SIZE; - *sid = LocalAlloc(0, size); - if (!*sid) - { - SetLastError(ERROR_NOT_ENOUGH_MEMORY); - return FALSE; - } - ret = CreateWellKnownSid(knownSid, - NULL, - *sid, - &size); - if (!ret) - { - SetLastError(ERROR_INVALID_SID); - LocalFree(*sid); - } - return ret; - } - } - - /* That's probably a string S-R-I-S-S... */ - if (StringSid[0] != 'S' || StringSid[1] != '-') - { - SetLastError(ERROR_INVALID_SID); - return FALSE; - } - - cBytes = ComputeStringSidSize(StringSid); - pisid = (SID*)LocalAlloc( 0, cBytes ); - if (!pisid) - { - SetLastError(ERROR_NOT_ENOUGH_MEMORY); - return FALSE; - } - i = 0; - ret = FALSE; - csubauth = ((cBytes - GetSidLengthRequired(0)) / sizeof(DWORD)); - - StringSid += 2; /* Advance to Revision */ - pisid->Revision = atoiW(StringSid); - - if (pisid->Revision != SDDL_REVISION) - { - TRACE("Revision %d is unknown\n", pisid->Revision); - goto lend; /* ERROR_INVALID_SID */ - } - if (csubauth == 0) - { - TRACE("SubAuthorityCount is 0\n"); - goto lend; /* ERROR_INVALID_SID */ - } - - pisid->SubAuthorityCount = csubauth; - - /* Advance to identifier authority */ - while (*StringSid && *StringSid != '-') - StringSid++; - if (*StringSid == '-') - StringSid++; - - /* MS' implementation can't handle values greater than 2^32 - 1, so - * we don't either; assume most significant bytes are always 0 - */ - pisid->IdentifierAuthority.Value[0] = 0; - pisid->IdentifierAuthority.Value[1] = 0; - identAuth = atoiW(StringSid); - pisid->IdentifierAuthority.Value[5] = identAuth & 0xff; - pisid->IdentifierAuthority.Value[4] = (identAuth & 0xff00) >> 8; - pisid->IdentifierAuthority.Value[3] = (identAuth & 0xff0000) >> 16; - pisid->IdentifierAuthority.Value[2] = (identAuth & 0xff000000) >> 24; - - /* Advance to first sub authority */ - while (*StringSid && *StringSid != '-') - StringSid++; - if (*StringSid == '-') - StringSid++; - - while (*StringSid) - { - pisid->SubAuthority[i++] = atoiW(StringSid); - - while (*StringSid && *StringSid != '-') - StringSid++; - if (*StringSid == '-') - StringSid++; - } - - if (i != pisid->SubAuthorityCount) - goto lend; /* ERROR_INVALID_SID */ - - *sid = pisid; - ret = TRUE; - -lend: - if (!ret) - { - LocalFree(pisid); - SetLastError(ERROR_INVALID_SID); - } - - TRACE("returning %s\n", ret ? "TRUE" : "FALSE"); - return ret; -} - -/* - * @implemented - */ -BOOL -WINAPI -ConvertStringSidToSidA(IN LPCSTR StringSid, - OUT PSID* sid) -{ - BOOL bRetVal = FALSE; - - TRACE("%s, %p\n", debugstr_a(StringSid), sid); +/****************************************************************************** + * ConvertStringSidToSidW [ADVAPI32.@] + */ +BOOL WINAPI ConvertStringSidToSidW(LPCWSTR StringSid, PSID* Sid) +{ + BOOL bret = FALSE; + DWORD cBytes; + + TRACE("%s, %p\n", debugstr_w(StringSid), Sid); if (GetVersion() & 0x80000000) SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - else if (!StringSid || !sid) + else if (!StringSid || !Sid) + SetLastError(ERROR_INVALID_PARAMETER); + else if (ParseStringSidToSid(StringSid, NULL, &cBytes)) + { + PSID pSid = *Sid = LocalAlloc(0, cBytes); + + bret = ParseStringSidToSid(StringSid, pSid, &cBytes); + if (!bret) + LocalFree(*Sid); + } + return bret; +} + +/****************************************************************************** + * ConvertStringSidToSidA [ADVAPI32.@] + */ +BOOL WINAPI ConvertStringSidToSidA(LPCSTR StringSid, PSID* Sid) +{ + BOOL bret = FALSE; + + TRACE("%s, %p\n", debugstr_a(StringSid), Sid); + if (GetVersion() & 0x80000000) + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + else if (!StringSid || !Sid) SetLastError(ERROR_INVALID_PARAMETER); else { - UINT len = MultiByteToWideChar(CP_ACP, 0, StringSid, -1, NULL, 0); - LPWSTR wStringSid = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); - if (wStringSid == NULL) - return FALSE; - MultiByteToWideChar(CP_ACP, 0, StringSid, - 1, wStringSid, len); - bRetVal = ConvertStringSidToSidW(wStringSid, sid); - HeapFree(GetProcessHeap(), 0, wStringSid); - } - return bRetVal; + WCHAR *wStringSid = SERV_dup(StringSid); + bret = ConvertStringSidToSidW(wStringSid, Sid); + heap_free(wStringSid); + } + return bret; } /*
10 years, 2 months
1
0
0
0
[akhaldi] 65029: [RASDLG] * Turkish translation update by Erdem Ersoy. CORE-7861
by akhaldi@svn.reactos.org
Author: akhaldi Date: Sun Oct 26 19:43:01 2014 New Revision: 65029 URL:
http://svn.reactos.org/svn/reactos?rev=65029&view=rev
Log: [RASDLG] * Turkish translation update by Erdem Ersoy. CORE-7861 Modified: trunk/reactos/dll/win32/rasdlg/lang/tr-TR.rc Modified: trunk/reactos/dll/win32/rasdlg/lang/tr-TR.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/rasdlg/lang/tr-T…
============================================================================== --- trunk/reactos/dll/win32/rasdlg/lang/tr-TR.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/rasdlg/lang/tr-TR.rc [iso-8859-1] Sun Oct 26 19:43:01 2014 @@ -46,7 +46,7 @@ AUTOCHECKBOX "&Ä°leride, Olmayan Geçekleri Deneme", 1030, 38, 226, 222, 10 DEFPUSHBUTTON "&Onayla", 1, 135, 242, 60, 14 PUSHBUTTON "&Ertele", 2, 201, 242, 60, 14 - LTEXT "EÄer yalnızca bir tek geçek baÄlıysa sunucu çoklu baÄlantılı aramaları kabul etmeye yapılandırılmamıŠolabilir. Böyle bir durumda gereksiz baÄlantı görevlerinden kaçınmak için ""Ä°leride, Olmayan Geçekleri Deneme""yi imleyiniz.", -1, 37, 36, 224, 44 + LTEXT "EÄer yalnızca bir tek geçek baÄlıysa sunucu çoklu baÄlantılı aramaları kabul etmeye yapılandırılmamıŠolabilir. Böyle bir durumda gereksiz baÄlantı yüklerinden kaçınmak için ""Ä°leride, Olmayan Geçekleri Deneme""yi imleyiniz.", -1, 37, 36, 224, 44 END 105 DIALOGEX 0, 0, 261, 253 @@ -366,145 +366,145 @@ 125 DIALOGEX 12, 16, 261, 190 STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUPWINDOW | WS_VISIBLE | WS_CAPTION -CAPTION "Modem Configuration" +CAPTION "Ãevirge Yapılandırılması" FONT 8, "MS Shell Dlg" BEGIN ICON 15102, 1238, 7, 7, 20, 20 - LTEXT "Modem", -1, 25, 27, 24, 8, NOT WS_VISIBLE | NOT WS_GROUP + LTEXT "Ãevirge", -1, 25, 27, 24, 8, NOT WS_VISIBLE | NOT WS_GROUP EDITTEXT 1235, 40, 7, 214, 16, ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER - LTEXT "&Maximum speed (bps):", 1243, 7, 36, 110, 8 + LTEXT "E&n Ãok Hız (bps):", 1243, 7, 36, 110, 8 COMBOBOX 1239, 119, 34, 136, 186, CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | NOT WS_TABSTOP - LTEXT "Modem &protocol", 1244, 7, 52, 111, 8 + LTEXT "&Ãevirge Ä°letiÅim Kâidesi", 1244, 7, 52, 111, 8 COMBOBOX 1245, 119, 50, 136, 186, CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | NOT WS_TABSTOP - GROUPBOX "Hardware features", 1237, 6, 70, 248, 61, WS_GROUP - AUTOCHECKBOX "E&nable hardware flow control", 1232, 19, 82, 217, 10, BS_TOP | BS_MULTILINE - AUTOCHECKBOX "En&able modem error control", 1231, 19, 98, 217, 10, BS_TOP | BS_MULTILINE - AUTOCHECKBOX "Enable m&odem compression", 1229, 19, 115, 217, 10, BS_TOP | BS_MULTILINE - AUTOCHECKBOX "&Show terminal window", 1234, 8, 136, 246, 10, BS_TOP | BS_MULTILINE - AUTOCHECKBOX "Enable mo&dem speaker", 1230, 8, 151, 247, 10, BS_TOP | BS_MULTILINE | WS_GROUP - DEFPUSHBUTTON "OK", 1, 129, 171, 60, 14, WS_GROUP - PUSHBUTTON "Cancel", 2, 194, 171, 60, 14 + GROUPBOX "Donanım Husûsiyetleri", 1237, 6, 70, 248, 61, WS_GROUP + AUTOCHECKBOX "&Donanım AkıŠDenetimini EtkinleÅtir", 1232, 19, 82, 217, 10, BS_TOP | BS_MULTILINE + AUTOCHECKBOX "Ã&evirge YanlıÅlık Denetimini EtkinleÅtir", 1231, 19, 98, 217, 10, BS_TOP | BS_MULTILINE + AUTOCHECKBOX "Ãe&virge SıkıÅtırmasını EtkinleÅtir", 1229, 19, 115, 217, 10, BS_TOP | BS_MULTILINE + AUTOCHECKBOX "&Uçbirim Penceresini Göster", 1234, 8, 136, 246, 10, BS_TOP | BS_MULTILINE + AUTOCHECKBOX "Ãev&irge Hoparlörünü EtkinleÅtir", 1230, 8, 151, 247, 10, BS_TOP | BS_MULTILINE | WS_GROUP + DEFPUSHBUTTON "Tamam", 1, 129, 171, 60, 14, WS_GROUP + PUSHBUTTON "Ä°ptal", 2, 194, 171, 60, 14 END 126 DIALOGEX 0, 0, 270, 117 STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUPWINDOW | WS_CAPTION -CAPTION "Select Network Component Type" -FONT 8, "MS Shell Dlg" -BEGIN - LTEXT "Click the type of network component you want to install:", -1, 8, 7, 258, 8 +CAPTION "AÄ BileÅeni Türünü Seç" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "Kurmak istediÄiniz aÄ bileÅeninin türünü tıklayınız:", -1, 8, 7, 258, 8 CONTROL "", 1251, "SYSLISTVIEW32", WS_BORDER | WS_TABSTOP | 0x0000C04D, 8, 20, 188, 58 GROUPBOX "", -1, 8, 81, 188, 30 LTEXT "", 1250, 12, 90, 177, 17 - DEFPUSHBUTTON "&Add...", 1252, 205, 20, 60, 14 - PUSHBUTTON "Cancel", 2, 205, 38, 60, 14 + DEFPUSHBUTTON "&Ekle...", 1252, 205, 20, 60, 14 + PUSHBUTTON "Ä°ptal", 2, 205, 38, 60, 14 END 127 DIALOGEX 16, 20, 260, 135 STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUPWINDOW | WS_VISIBLE | WS_CAPTION -CAPTION "NetWare or Compatible Connections" +CAPTION "NetWare veyâ Uyumlu BaÄlantılar" FONT 8, "MS Shell Dlg" BEGIN ICON 32515, 1278, 7, 7, 21, 20, WS_GROUP - LTEXT "You have connections to a NetWare compatible network. These connections will be closed when the PPP IPX connection is established.", 1279, 42, 7, 215, 37 - LTEXT "Before dialing, to avoid data loss, either close all files using these connections or uncheck IPX on this entry's Network Protocol settings.", 1280, 42, 46, 215, 38, NOT WS_GROUP - AUTOCHECKBOX "&Do not display this message in the future", 1277, 42, 86, 215, 10, BS_TOP | BS_MULTILINE | WS_GROUP - DEFPUSHBUTTON "OK", 1, 65, 112, 60, 14, WS_GROUP - PUSHBUTTON "Cancel", 2, 134, 112, 60, 14 + LTEXT "Bir NetWare uyumlu aÄ için baÄlantılarınız var. PPP IPX baÄlantısı kurulduÄunda bu baÄlantılar kapatılacaktır.", 1279, 42, 7, 215, 37 + LTEXT "Ãevirmeden önce veri yitiminden kaçınmak için ya bu baÄlantıları kullanan tüm kütükleri siliniz ya da bu giriÅin AÄ Ä°letiÅim Kâidesi ayarlarında IPX'in imini kaldırınız.", 1280, 42, 46, 215, 38, NOT WS_GROUP + AUTOCHECKBOX "&Gelecekte Bu Ä°letiyi Gösterme", 1277, 42, 86, 215, 10, BS_TOP | BS_MULTILINE | WS_GROUP + DEFPUSHBUTTON "Tamam", 1, 65, 112, 60, 14, WS_GROUP + PUSHBUTTON "Ä°ptal", 2, 134, 112, 60, 14 END 128 DIALOGEX 7, 22, 236, 90 STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUPWINDOW | WS_CAPTION -CAPTION "Manual Dial" -FONT 8, "MS Shell Dlg" -BEGIN - LTEXT "Pick up the handset and dial (or ask the operator to dial). After dialing is complete, click OK. Listen to handset until silent, and then hang up.", 1281, 8, 8, 219, 32 - LTEXT "Phone number:", 1282, 8, 46, 91, 8 +CAPTION "Elle Ãevir" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "Almacı kaldırınız ve çeviriniz (ya da çevirmek için iÅletmene sorunuz). Ãevirme bitirildikten sonra Tamam'a tıklayınız. Almacı, sessiz olana dek dinleyniz, sonra erteleyiniz.", 1281, 8, 8, 219, 32 + LTEXT "Telefon Numarası:", 1282, 8, 46, 91, 8 LTEXT "", 1283, 103, 46, 126, 8, NOT WS_GROUP - DEFPUSHBUTTON "OK", 1, 104, 70, 60, 14, WS_GROUP - PUSHBUTTON "Cancel", 2, 168, 70, 60, 14 + DEFPUSHBUTTON "Tamam", 1, 104, 70, 60, 14, WS_GROUP + PUSHBUTTON "Ä°ptal", 2, 168, 70, 60, 14 END 129 DIALOGEX 6, 20, 260, 85 STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUPWINDOW | WS_CAPTION -CAPTION "Network Protocol Connection Result" +CAPTION "AÄ Ä°letiÅim Kâidesi BaÄlantı Sonucu" FONT 8, "MS Shell Dlg" BEGIN ICON 32516, 1328, 7, 7, 21, 20, WS_GROUP LTEXT "", 1329, 38, 7, 216, 24, NOT WS_GROUP - AUTOCHECKBOX "&Do not request the failed protocols next time", 1327, 40, 44, 215, 10, BS_TOP | BS_MULTILINE | WS_GROUP - PUSHBUTTON "&Accept", 1, 129, 64, 60, 14 - PUSHBUTTON "&Hang Up", 2, 193, 64, 60, 14 + AUTOCHECKBOX "O&lmayan Ä°letiÅim Kâidelerini Bir Dahaki Kezde Ä°steme", 1327, 40, 44, 215, 10, BS_TOP | BS_MULTILINE | WS_GROUP + PUSHBUTTON "&Onayla", 1, 129, 64, 60, 14 + PUSHBUTTON "&Ertele", 2, 193, 64, 60, 14 END 133 DIALOGEX 6, 18, 231, 211 STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUPWINDOW | WS_VISIBLE | WS_CAPTION -CAPTION "X.25 Logon Settings" -FONT 8, "MS Shell Dlg" -BEGIN - LTEXT "Select your X.25 network provider and type the X.121 address of the remote server:", 1408, 7, 4, 220, 27 - LTEXT "&Network:", 1410, 9, 35, 213, 8, NOT WS_GROUP +CAPTION "X.25 Oturum Açma Ayarları" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "X.25 aÄ saÄlayıcınızı seçiniz ve uzak sunucunun X.121 adresini yazınız:", 1408, 7, 4, 220, 27 + LTEXT "&AÄ:", 1410, 9, 35, 213, 8, NOT WS_GROUP COMBOBOX 1406, 9, 46, 215, 125, CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | NOT WS_TABSTOP - LTEXT "X.121&address:", 1407, 9, 66, 213, 8, NOT WS_GROUP + LTEXT "&X.121 Adresi:", 1407, 9, 66, 213, 8, NOT WS_GROUP EDITTEXT 1402, 8, 77, 215, 14, ES_AUTOHSCROLL - GROUPBOX "Optional", 1405, 8, 95, 215, 79 - LTEXT "&User data:", 1411, 19, 109, 182, 8, NOT WS_GROUP + GROUPBOX "Seçimlik", 1405, 8, 95, 215, 79 + LTEXT "&Kullanıcı Verisi:", 1411, 19, 109, 182, 8, NOT WS_GROUP EDITTEXT 1404, 19, 120, 193, 14, ES_AUTOHSCROLL - LTEXT "&Facilities:", 1409, 19, 138, 182, 8, NOT WS_GROUP + LTEXT "&Olanaklar:", 1409, 19, 138, 182, 8, NOT WS_GROUP EDITTEXT 1403, 19, 149, 193, 14, ES_AUTOHSCROLL - DEFPUSHBUTTON "OK", 1, 100, 189, 60, 14 - PUSHBUTTON "Cancel", 2, 164, 189, 60, 14 + DEFPUSHBUTTON "Tamam", 1, 100, 189, 60, 14 + PUSHBUTTON "Ä°ptal", 2, 164, 189, 60, 14 END 146 DIALOGEX 6, 18, 230, 210 STYLE DS_SHELLFONT | WS_CHILD | WS_VISIBLE | WS_CAPTION -CAPTION "Autodial" -FONT 8, "MS Shell Dlg" -BEGIN - LTEXT "If you are disconnected from a network, autodial attempts to connect to a network whenever you try to access remote information.", -1, 7, 4, 219, 32 - LTEXT "&Enable autodial by location:", 1006, 8, 42, 213, 8 +CAPTION "KendiliÄinden Ãevirme" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "Bir aÄdan ayrıysanız ne zaman uzak bilgiye eriÅmeye çalıÅtıÄınız bir aÄ için kendiliÄinden çevirme baÄlanmaya giriÅir.", -1, 7, 4, 219, 32 + LTEXT "&Åu Konuma Göre KendiliÄinden Ãevirmeyi EtkinleÅtir:", 1006, 8, 42, 213, 8 CONTROL "", 1004, "SYSLISTVIEW32", WS_BORDER | WS_GROUP | WS_TABSTOP | 0x0000C401, 7, 53, 216, 109 - AUTOCHECKBOX "Al&ways ask me before autodialing", 1496, 8, 170, 218, 9, BS_TOP | BS_MULTILINE - AUTOCHECKBOX "&Disable autodial while I am logged on", 1550, 8, 185, 217, 9, BS_TOP | BS_MULTILINE + AUTOCHECKBOX "&KendiliÄinden Ãevirmeden Ãnce Tüm Zamanlarda Bana Sor", 1496, 8, 170, 218, 9, BS_TOP | BS_MULTILINE + AUTOCHECKBOX "&Ben Oturum AçtıÄım Sürede KendiliÄinden Ãevirmeyi EdilginleÅtir", 1550, 8, 185, 217, 9, BS_TOP | BS_MULTILINE END 147 DIALOGEX 6, 18, 230, 215 STYLE DS_SHELLFONT | WS_CHILD | WS_VISIBLE | WS_CAPTION -CAPTION "Dialing" -FONT 8, "MS Shell Dlg" -BEGIN - LTEXT "These preferences apply to 'Login using Dial-Up Networking' at Ctrl-Alt-Del login. You, as an administrator, have access to this sheet.", 1007, 7, 4, 221, 40, NOT WS_GROUP - LTEXT "&Number of redial attempts:", 1005, 7, 55, 154, 8 +CAPTION "Ãevirme" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "Bu yeÄlemeler; Denetim, Seçenek ve Silme oturum açmada ""Ãevirmeli AÄ'ı kullanan oturum açmaya"" uygulanır. Sizin bir yönetici olarak bu sayfaya eriÅiminiz var.", 1007, 7, 4, 221, 40, NOT WS_GROUP + LTEXT "&Yeniden Ãevirme GiriÅimlerinin Sayısı:", 1005, 7, 55, 154, 8 EDITTEXT 1001, 164, 52, 60, 14, ES_AUTOHSCROLL - LTEXT "&Seconds between redial attempts:", 1009, 7, 73, 156, 8, NOT WS_GROUP + LTEXT "Y&eniden Ãevirme GiriÅimleri Arasındaki Sâniyeler:", 1009, 7, 73, 156, 8, NOT WS_GROUP EDITTEXT 1003, 164, 70, 60, 14, ES_AUTOHSCROLL - LTEXT "I&dle seconds before hanging up:", 1008, 7, 91, 154, 8, NOT WS_GROUP + LTEXT "E&rtelemeden Ãnce BoÅta Kalma Sâniyeleri:", 1008, 7, 91, 154, 8, NOT WS_GROUP EDITTEXT 1002, 164, 88, 60, 14, ES_AUTOHSCROLL END 148 DIALOGEX 6, 18, 230, 215 STYLE DS_SHELLFONT | WS_CHILD | WS_VISIBLE | WS_CAPTION -CAPTION "Callback" -FONT 8, "MS Shell Dlg" -BEGIN - LTEXT "When you dial into a server, it may offer to call you back to reduce your phone charges. Specify whether you want callback. (Callback is not supported for virtual private network (VPN) connections.)", 1043, 8, 4, 219, 43 - AUTORADIOBUTTON "&No callback", 1041, 7, 48, 219, 10, BS_TOP | BS_MULTILINE | WS_GROUP - AUTORADIOBUTTON "A&sk me during dialing when the server offers", 1040, 7, 61, 219, 10, BS_TOP | BS_MULTILINE - AUTORADIOBUTTON "Al&ways call me back at the number(s) below:", 1042, 7, 74, 219, 10, BS_TOP | BS_MULTILINE +CAPTION "Geri Arama" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "Bir sunucuya çevirdiÄinizde o, telefonunuzun yükünü azaltmaya sizi yeniden aramak için saÄlayabilir. Geri arama isteseniz de istemeseniz de belirtiniz. (Geri arama farazî ve Åahsî aÄ (VPN) baÄlantıları için desteklenmiyor.)", 1043, 8, 4, 219, 43 + AUTORADIOBUTTON "&Geri Arama Yok", 1041, 7, 48, 219, 10, BS_TOP | BS_MULTILINE | WS_GROUP + AUTORADIOBUTTON "S&unucu SunduÄunda Ãevirme Esnâsında Bana Sor", 1040, 7, 61, 219, 10, BS_TOP | BS_MULTILINE + AUTORADIOBUTTON "&Beni Tüm Zamanalarda AÅaÄıdaki Numaralardan Geri Ara:", 1042, 7, 74, 219, 10, BS_TOP | BS_MULTILINE CONTROL "", 1037, "SYSLISTVIEW32", WS_BORDER | WS_GROUP | WS_TABSTOP | 0x00008401, 16, 88, 204, 94 - PUSHBUTTON "&Edit...", 1039, 96, 190, 60, 14 - PUSHBUTTON "&Delete", 1038, 159, 190, 60, 14 + PUSHBUTTON "&Düzenle...", 1039, 96, 190, 60, 14 + PUSHBUTTON "&Sil", 1038, 159, 190, 60, 14 END 149 DIALOGEX 6, 18, 317, 142 STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION FONT 8, "MS Shell Dlg" BEGIN - LTEXT "You need to set the dial-in credentials that remote routers will use when connecting to this interface. A user account will be created on this router with the information that you enter here.", 1094, 8, 5, 307, 35 - LTEXT "&User name:", 1078, 8, 47, 124, 8, NOT WS_GROUP + LTEXT "Bu arayüz için baÄlandıÄında kullanılacak uzak yönlendiriciler arama kimlik bilgilerini ayarlamaya gerksiniminiz var. Bu yönlendiricide buraya girdiÄiniz bilgiyle bir kullanıcı hesâbı oluÅturulacaktır.", 1094, 8, 5, 307, 35 + LTEXT "&Kullanıcı Adı:", 1078, 8, 47, 124, 8, NOT WS_GROUP EDITTEXT 1074, 135, 45, 175, 12, ES_AUTOHSCROLL | WS_DISABLED - LTEXT "&Password:", 1077, 8, 68, 124, 8, NOT WS_GROUP + LTEXT "&Åifre:", 1077, 8, 68, 124, 8, NOT WS_GROUP EDITTEXT 1073, 135, 66, 175, 12, ES_PASSWORD | ES_AUTOHSCROLL - LTEXT "&Confirm password:", 1075, 8, 90, 124, 8, NOT WS_GROUP + LTEXT "Å&ifreyi DoÄrula:", 1075, 8, 90, 124, 8, NOT WS_GROUP EDITTEXT 1071, 135, 87, 175, 12, ES_PASSWORD | ES_AUTOHSCROLL END @@ -512,14 +512,14 @@ STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION FONT 8, "MS Shell Dlg" BEGIN - LTEXT "You need to set the dial out credentials that this interface will use when connecting to the remote router. These credentials must match the dial in credentials configured on the remote router.", 1094, 8, 5, 308, 33 - LTEXT "&User name:", 1096, 8, 43, 130, 8, NOT WS_GROUP + LTEXT "Uzak yönlendiriciye baÄlanırken bu arayüzün kullanacaÄı dıÅarıya arama kimlik bilgilerini ayarlamaya gereksiniminiz var. Bu kimlik bilgileri, uzak yönlendiricide yapılandırılmıŠiçeriye arama kimlik bilgileriyle eÅleÅmelidir.", 1094, 8, 5, 308, 33 + LTEXT "&Kullanıcı Adı:", 1096, 8, 43, 130, 8, NOT WS_GROUP EDITTEXT 1091, 140, 40, 175, 12, ES_AUTOHSCROLL - LTEXT "&Domain:", 1093, 8, 63, 130, 8, NOT WS_GROUP + LTEXT "&Etki Alanı:", 1093, 8, 63, 130, 8, NOT WS_GROUP EDITTEXT 1089, 140, 60, 175, 12, ES_UPPERCASE | ES_AUTOHSCROLL - LTEXT "&Password:", 1095, 8, 81, 130, 8, NOT WS_GROUP + LTEXT "&Åifre:", 1095, 8, 81, 130, 8, NOT WS_GROUP EDITTEXT 1090, 140, 78, 175, 12, ES_PASSWORD | ES_AUTOHSCROLL - LTEXT "&Confirm password:", 1092, 8, 99, 130, 8, NOT WS_GROUP + LTEXT "Å&ifreyi DoÄrula:", 1092, 8, 99, 130, 8, NOT WS_GROUP EDITTEXT 1088, 140, 96, 175, 12, ES_PASSWORD | ES_AUTOHSCROLL END @@ -527,140 +527,140 @@ STYLE DS_SHELLFONT | WS_CHILD | WS_DISABLED | WS_CAPTION FONT 8, "MS Shell Dlg" BEGIN - LTEXT "Type a name you want for this connection:", -1, 8, 4, 190, 8 + LTEXT "Bu baÄlantı için istediÄiniz bir ad yazınız:", -1, 8, 4, 190, 8 EDITTEXT 1114, 8, 17, 190, 12, ES_AUTOHSCROLL - LTEXT "Click Finish to save it in the Network Connections folder.", -1, 8, 38, 193, 8 - LTEXT "To edit this connection later, select it, click the File menu, and then click Properties.", -1, 8, 58, 193, 16 + LTEXT "Onu AÄ BaÄlantıları dizini içine kaydetmek için Bitir'e tıklayınız.", -1, 8, 38, 193, 8 + LTEXT "Bu baÄlantıyı daha sonra düzenlemek için onu seçiniz, Kütük seçkesine tıklayınız, sonra Husûsiyetler'e tıklayınız.", -1, 8, 58, 193, 16 END 155 DIALOGEX 0, 0, 231, 215 STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION -CAPTION "General" -FONT 8, "MS Shell Dlg" -BEGIN - LTEXT "Connec&t using:", 1124, 7, 5, 219, 8 +CAPTION "Umûmî" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "&BaÄlanırken Kullan:", 1124, 7, 5, 219, 8 CONTROL "", 1128, "SYSLISTVIEW32", WS_BORDER | WS_TABSTOP | 0x00004C0D, 7, 17, 198, 44, WS_EX_CLIENTEDGE - PUSHBUTTON "&Up", 1132, 210, 18, 16, 14, BS_ICON - PUSHBUTTON "&Down", 1131, 210, 36, 16, 14, BS_ICON - AUTOCHECKBOX "A&ll devices call the same numbers", 1119, 9, 66, 133, 14, BS_TOP | BS_MULTILINE - PUSHBUTTON "C&onfigure...", 1130, 144, 66, 60, 14 - GROUPBOX "Sample type", 1125, 8, 84, 215, 100, WS_GROUP - LTEXT "Ar&ea code:", 1133, 17, 102, 52, 8 + PUSHBUTTON "&Yukarı", 1132, 210, 18, 16, 14, BS_ICON + PUSHBUTTON "&AÅaÄı", 1131, 210, 36, 16, 14, BS_ICON + AUTOCHECKBOX "&Tüm Aygıtlar Aynı Numaralardan Arasın", 1119, 9, 66, 133, 14, BS_TOP | BS_MULTILINE + PUSHBUTTON "Ya&pılandır...", 1130, 144, 66, 60, 14 + GROUPBOX "Ãrnek Tür", 1125, 8, 84, 215, 100, WS_GROUP + LTEXT "A&lan Kodu:", 1133, 17, 102, 52, 8 COMBOBOX 1122, 17, 112, 52, 110, CBS_DROPDOWN | WS_VSCROLL | NOT WS_TABSTOP - LTEXT "&Phone number:", 1135, 71, 102, 139, 8 + LTEXT "T&elefon Numarası:", 1135, 71, 102, 139, 8 EDITTEXT 1123, 73, 112, 79, 14, ES_AUTOHSCROLL - PUSHBUTTON "Alter&nates", 1129, 154, 112, 60, 14 - LTEXT "Country/re&gion code:", 1134, 17, 132, 197, 8 + PUSHBUTTON "Ba&Åkaları", 1129, 154, 112, 60, 14 + LTEXT "&Ãlke ya da Bölge Kodu:", 1134, 17, 132, 197, 8 COMBOBOX 1126, 17, 143, 193, 130, CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | NOT WS_TABSTOP - AUTOCHECKBOX "U&se dialing rules", 1121, 17, 163, 132, 14, BS_TOP | BS_MULTILINE - PUSHBUTTON "Dialing &Rules", 1136, 151, 161, 60, 14 - AUTOCHECKBOX "Sho&w icon in notification area when connected", 1120, 10, 192, 214, 19, BS_TOP | BS_MULTILINE + AUTOCHECKBOX "&Ãevirme Kâidelerini Kullan", 1121, 17, 163, 132, 14, BS_TOP | BS_MULTILINE + PUSHBUTTON "Ãe&virme Kâideleri", 1136, 151, 161, 60, 14 + AUTOCHECKBOX "Ba&ÄlandıÄında Bildirim Alanında Simge Göster", 1120, 10, 192, 214, 19, BS_TOP | BS_MULTILINE END 156 DIALOGEX 0, 0, 231, 215 STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION -CAPTION "General" -FONT 8, "MS Shell Dlg" -BEGIN - PUSHBUTTON "C&onfigure...", 1130, 164, 38, 60, 14 - GROUPBOX "Sample text", 1125, 8, 55, 217, 100, WS_GROUP - LTEXT "Ar&ea code:", 1133, 17, 72, 48, 8 +CAPTION "Umûmî" +FONT 8, "MS Shell Dlg" +BEGIN + PUSHBUTTON "&Yapılandır...", 1130, 164, 38, 60, 14 + GROUPBOX "Ãrnek Metin", 1125, 8, 55, 217, 100, WS_GROUP + LTEXT "A&lan Kodu:", 1133, 17, 72, 48, 8 COMBOBOX 1122, 17, 83, 48, 119, CBS_DROPDOWN | WS_VSCROLL | NOT WS_TABSTOP - LTEXT "&Phone number:", 1135, 71, 72, 146, 8 + LTEXT "T&elefon Numarası:", 1135, 71, 72, 146, 8 EDITTEXT 1123, 71, 83, 81, 14, ES_AUTOHSCROLL - PUSHBUTTON "Alter&nates", 1129, 155, 83, 63, 14 - LTEXT "Country/re&gion code:", 1134, 17, 103, 193, 8 + PUSHBUTTON "Ba&Åkaları", 1129, 155, 83, 63, 14 + LTEXT "&Ãlke ya da Bölge Kodu:", 1134, 17, 103, 193, 8 COMBOBOX 1126, 17, 114, 201, 130, CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | NOT WS_TABSTOP - AUTOCHECKBOX "U&se dialing rules", 1121, 19, 134, 136, 12, BS_TOP | BS_MULTILINE - PUSHBUTTON "Dialing &Rules", 1136, 157, 132, 60, 14 - AUTOCHECKBOX "Sho&w icon in notification area when connected", 1120, 12, 164, 209, 18, BS_TOP | BS_MULTILINE - LTEXT "Connect using:", 1124, 8, 5, 217, 8 + AUTOCHECKBOX "&Ãevirme Kâidelerini Kullan", 1121, 19, 134, 136, 12, BS_TOP | BS_MULTILINE + PUSHBUTTON "Ãe&virme Kâideleri", 1136, 157, 132, 60, 14 + AUTOCHECKBOX "Ba&ÄlandıÄında Bildirim Alanında Simge Göster", 1120, 12, 164, 209, 18, BS_TOP | BS_MULTILINE + LTEXT "&BaÄlanırken Kullan:", 1124, 8, 5, 217, 8 CONTROL "", 1127, "SYSLISTVIEW32", WS_DISABLED | WS_BORDER | 0x0000EC0D, 7, 18, 217, 15 END 157 DIALOGEX 6, 18, 235, 160 STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUPWINDOW | WS_VISIBLE | WS_CAPTION -CAPTION "Appearance" -FONT 8, "MS Shell Dlg" -BEGIN - AUTOCHECKBOX "&Preview phone numbers before dialing", 1142, 8, 10, 224, 10, WS_GROUP - AUTOCHECKBOX "Show &location setting before dialing", 1139, 8, 27, 224, 10 - AUTOCHECKBOX "Allo&w location edits during login", 1140, 21, 43, 212, 10 - AUTOCHECKBOX "Show &connection progress while dialing", 1143, 8, 59, 224, 10 - AUTOCHECKBOX "Clo&se on dial", 1137, 8, 76, 224, 10 - AUTOCHECKBOX "All&ow phonebook edits during login", 1141, 8, 94, 224, 10 - AUTOCHECKBOX "&Use wizard to create new phonebook entries", 1144, 22, 111, 210, 10 +CAPTION "Görünüm" +FONT 8, "MS Shell Dlg" +BEGIN + AUTOCHECKBOX "&Ãevirmeden Ãnce Telefon Numaralarını Ãnceden Göster", 1142, 8, 10, 224, 10, WS_GROUP + AUTOCHECKBOX "Ã&evirmeden Ãnce Koum Ayârını Göster", 1139, 8, 27, 224, 10 + AUTOCHECKBOX "&Oturum Açma Esnâsında Konum Düzenlemelerine Ä°zin Ver", 1140, 21, 43, 212, 10 + AUTOCHECKBOX "Ãe&virirken BaÄlantı Ä°lerlemesini Göster", 1143, 8, 59, 224, 10 + AUTOCHECKBOX "&Aramada Kapat", 1137, 8, 76, 224, 10 + AUTOCHECKBOX "O&turum Açma Esnâsında Telefon Defteri Düzenlemelerine Ä°zin Ver", 1141, 8, 94, 224, 10 + AUTOCHECKBOX "&Yeni Telefon Defteri GiriÅlerini OluÅturmak İçin Yardımcı Kullan", 1144, 22, 111, 210, 10 END 158 DIALOGEX 6, 18, 235, 160 STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUPWINDOW | WS_VISIBLE | WS_CAPTION -CAPTION "Appearance" -FONT 8, "MS Shell Dlg" -BEGIN - AUTOCHECKBOX "&Preview phone numbers before dialing", 1142, 8, 10, 223, 10, WS_GROUP - AUTOCHECKBOX "Show &location setting before dialing", 1139, 8, 27, 206, 10 - AUTOCHECKBOX "Start dial-up networking &monitor before dialing", 1138, 8, 44, 226, 10 - AUTOCHECKBOX "Show &connection progress while dialing", 1143, 8, 61, 224, 10 - AUTOCHECKBOX "Clo&se on dial", 1137, 8, 79, 220, 10 - AUTOCHECKBOX "&Use wizard to create new phonebook entries", 1144, 8, 97, 220, 10 - AUTOCHECKBOX "Always prompt &before auto-dialing", 1136, 8, 114, 220, 10 +CAPTION "Görünüm" +FONT 8, "MS Shell Dlg" +BEGIN + AUTOCHECKBOX "&Ãevirmeden Ãnce Telefon Numaralarını Ãnceden Göster", 1142, 8, 10, 223, 10, WS_GROUP + AUTOCHECKBOX "Ã&evirmeden Ãnce Koum Ayârını Göster", 1139, 8, 27, 206, 10 + AUTOCHECKBOX "Ãev&irmeden Ãnce Ãevirmeli AÄ Ä°zlemesini BaÅlat", 1138, 8, 44, 226, 10 + AUTOCHECKBOX "Ãe&virirken BaÄlantı Ä°lerlemesini Göster", 1143, 8, 61, 224, 10 + AUTOCHECKBOX "&Aramada Kapat", 1137, 8, 79, 220, 10 + AUTOCHECKBOX "&Yeni Telefon Defteri GiriÅlerini OluÅturmak İçin Yardımcı Kullan", 1144, 8, 97, 220, 10 + AUTOCHECKBOX "&KendiliÄinden Ãevirmeden Ãnce Tüm Zamanlarda Sor", 1136, 8, 114, 220, 10 END 160 DIALOGEX 6, 18, 320, 145 STYLE DS_SHELLFONT | DS_MODALFRAME | WS_CHILD | WS_VISIBLE | WS_CAPTION FONT 8, "MS Shell Dlg" BEGIN - LTEXT "Select a name for this demand dial interface. A common practice is to name interfaces after the network or router to which they connect.", 1158, 7, 5, 309, 29 - LTEXT "&Interface name:", 1159, 17, 41, 285, 8, NOT WS_GROUP + LTEXT "Bu çevirme arayüzü isteÄi için bir ad seçiniz. BaÄlanan yönlendirici ya da aÄdan sonra arayüzleri adlandırmak bilinen bir uygulamadır.", 1158, 7, 5, 309, 29 + LTEXT "&Arayüz Adı:", 1159, 17, 41, 285, 8, NOT WS_GROUP EDITTEXT 1157, 17, 53, 284, 12, ES_AUTOHSCROLL - AUTOCHECKBOX "I &know all about demand-dial interfaces and would rather edit the properties directly", 1156, 24, 100, 258, 31, BS_TOP | BS_MULTILINE | NOT WS_VISIBLE | WS_DISABLED + AUTOCHECKBOX "&Ãevirme Arayüzleri Ä°steÄi Ãzerine Tüm Åeyleri Biliyorum ve Husûsiyetleri DoÄrudan Düzenlemeyi YeÄliyorum", 1156, 24, 100, 258, 31, BS_TOP | BS_MULTILINE | NOT WS_VISIBLE | WS_DISABLED END 162 DIALOGEX 0, 0, 230, 215 STYLE DS_SHELLFONT | WS_CHILD | WS_CAPTION -CAPTION "Security" -FONT 8, "MS Shell Dlg" -BEGIN - GROUPBOX "Security options", 1580, 8, 3, 215, 139 - AUTORADIOBUTTON "&Typical (recommended settings)", 1540, 14, 16, 201, 9, BS_NOTIFY | WS_GROUP - AUTORADIOBUTTON "A&dvanced (custom settings)", 1541, 14, 102, 198, 8, BS_NOTIFY - LTEXT "&Validate my identity as follows:", 1537, 26, 29, 187, 8, NOT WS_GROUP +CAPTION "Güvenlik" +FONT 8, "MS Shell Dlg" +BEGIN + GROUPBOX "Güvenlik Seçenekleri", 1580, 8, 3, 215, 139 + AUTORADIOBUTTON "&Tipik (Ãnerilen Ayarlar)", 1540, 14, 16, 201, 9, BS_NOTIFY | WS_GROUP + AUTORADIOBUTTON "&GeliÅmiÅ (Husûsî Ayarlar)", 1541, 14, 102, 198, 8, BS_NOTIFY + LTEXT "&KimliÄimi AÅaÄıdaki Gibi Onayla:", 1537, 26, 29, 187, 8, NOT WS_GROUP COMBOBOX 1178, 26, 40, 184, 78, CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | NOT WS_TABSTOP - AUTOCHECKBOX "A&utomatically use my ReactOS logon name and password (and domain if any)", 1174, 26, 58, 184, 20, BS_TOP | BS_MULTILINE - AUTOCHECKBOX "Requ&ire data encryption (disconnect if none)", 1169, 26, 82, 183, 10, BS_TOP | BS_MULTILINE - LTEXT "Using these settings requires a knowledge of security protocols.", 1539, 15, 114, 134, 20 - PUSHBUTTON "&Settings...", 1180, 151, 115, 60, 14 - GROUPBOX "Interactive logon and scripting", 1177, 8, 146, 215, 62, WS_GROUP - AUTOCHECKBOX "S&how terminal window", 1173, 14, 159, 198, 11, BS_TOP | BS_MULTILINE - AUTOCHECKBOX "&Run script:", 1172, 14, 172, 57, 10, BS_TOP | BS_MULTILINE + AUTOCHECKBOX "&ReactOS Oturum Açma Adımı ve Åifremi KendiliÄinden Kullan (EÄer Varsa Etki Alanını Da)", 1174, 26, 58, 184, 20, BS_TOP | BS_MULTILINE + AUTOCHECKBOX "&Veri SıkıÅtırmasını Gerektir (EÄer Yoksa BaÄlantıyı Kes)", 1169, 26, 82, 183, 10, BS_TOP | BS_MULTILINE + LTEXT "Bu ayarları kullanmak güvenlik iletiÅim kâidelerinin bir bilgisini gerektirir.", 1539, 15, 114, 134, 20 + PUSHBUTTON "&Ayarlar...", 1180, 151, 115, 60, 14 + GROUPBOX "EtkileÅimli Oturum Açma ve Betikleme", 1177, 8, 146, 215, 62, WS_GROUP + AUTOCHECKBOX "&Uçbirim Penceresini Göster", 1173, 14, 159, 198, 11, BS_TOP | BS_MULTILINE + AUTOCHECKBOX "&BetiÄi ÃalıÅtır:", 1172, 14, 172, 57, 10, BS_TOP | BS_MULTILINE COMBOBOX 1179, 72, 171, 140, 104, CBS_DROPDOWN | CBS_AUTOHSCROLL | WS_VSCROLL | NOT WS_TABSTOP - PUSHBUTTON "&Edit...", 1182, 87, 187, 60, 14 - PUSHBUTTON "&Browse...", 1181, 151, 187, 60, 14 + PUSHBUTTON "&Düzenle...", 1182, 87, 187, 60, 14 + PUSHBUTTON "G&öz At...", 1181, 151, 187, 60, 14 END 163 DIALOGEX 0, 0, 317, 143 STYLE DS_SHELLFONT | WS_CHILD | WS_DISABLED | WS_CAPTION FONT 8, "MS Shell Dlg" BEGIN - LTEXT "You have more than one dial-up device on your computer.", -1, 6, 3, 307, 13 - LTEXT "&Select the devices to use in this connection:", -1, 6, 15, 307, 11 + LTEXT "Bilgisayarınızda birden çok çevirme aygıtınız var.", -1, 6, 3, 307, 13 + LTEXT "&Bu baÄlantıda kullanmak için aygıtları seçiniz:", -1, 6, 15, 307, 11 CONTROL "", 1228, "SYSLISTVIEW32", WS_BORDER | WS_TABSTOP | 0x0000C415, 7, 28, 304, 77 END 165 DIALOGEX 0, 0, 230, 215 STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUPWINDOW | WS_CAPTION -CAPTION "Networking" -FONT 8, "MS Shell Dlg" -BEGIN - LTEXT "Typ&e of dial-up server I am calling:", 1583, 7, 4, 219, 8 +CAPTION "AÄ Kurma" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "&AradıÄım Ãevirme Sunucusunun Türü:", 1583, 7, 4, 219, 8 COMBOBOX 1418, 7, 17, 215, 46, CBS_DROPDOWNLIST | WS_VSCROLL | NOT WS_TABSTOP - PUSHBUTTON "&Settings", 1419, 160, 35, 60, 14 - LTEXT "This c&onnection uses the following items:", 1684, 8, 64, 219, 10 + PUSHBUTTON "A&yarlar", 1419, 160, 35, 60, 14 + LTEXT "&Bu BaÄlantı AÅaÄıdaki ÃÄeleri Kullanır:", 1684, 8, 64, 219, 10 CONTROL "", 1251, "SYSLISTVIEW32", WS_BORDER | WS_TABSTOP | 0x0000C40D, 7, 75, 216, 53 - PUSHBUTTON "I&nstall...", 1252, 7, 133, 67, 14 - PUSHBUTTON "&Uninstall", 1254, 80, 133, 67, 14 - PUSHBUTTON "P&roperties", 1253, 153, 133, 67, 14 - GROUPBOX "Description", 1585, 9, 158, 213, 43 + PUSHBUTTON "&Kur...", 1252, 7, 133, 67, 14 + PUSHBUTTON "Ka&ldır", 1254, 80, 133, 67, 14 + PUSHBUTTON "&Husûsiyetler", 1253, 153, 133, 67, 14 + GROUPBOX "Tanım", 1585, 9, 158, 213, 43 LTEXT "", 1250, 18, 167, 195, 25 END
10 years, 2 months
1
0
0
0
[hpoussin] 65028: [NTFS] Also return the short file name to caller if available
by hpoussin@svn.reactos.org
Author: hpoussin Date: Sun Oct 26 19:10:39 2014 New Revision: 65028 URL:
http://svn.reactos.org/svn/reactos?rev=65028&view=rev
Log: [NTFS] Also return the short file name to caller if available Modified: trunk/reactos/drivers/filesystems/ntfs/dirctl.c Modified: trunk/reactos/drivers/filesystems/ntfs/dirctl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/d…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/dirctl.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/dirctl.c [iso-8859-1] Sun Oct 26 19:10:39 2014 @@ -242,12 +242,13 @@ ULONG BufferLength) { ULONG Length; - PFILENAME_ATTRIBUTE FileName; + PFILENAME_ATTRIBUTE FileName, ShortFileName; DPRINT("NtfsGetBothDirectoryInformation() called\n"); FileName = GetFileNameFromRecord(FileRecord, NTFS_FILE_NAME_WIN32); ASSERT(FileName != NULL); + ShortFileName = GetFileNameFromRecord(FileRecord, NTFS_FILE_NAME_DOS); Length = FileName->NameLength * sizeof (WCHAR); if ((sizeof(FILE_BOTH_DIR_INFORMATION) + Length) > BufferLength) @@ -258,6 +259,19 @@ ROUND_UP(sizeof(FILE_BOTH_DIR_INFORMATION) + Length, sizeof(ULONG)); RtlCopyMemory(Info->FileName, FileName->Name, Length); + if (ShortFileName) + { + /* Should we upcase the filename? */ + ASSERT(ShortFileName->NameLength <= ARRAYSIZE(Info->ShortName)); + Info->ShortNameLength = ShortFileName->NameLength * sizeof(WCHAR); + RtlCopyMemory(Info->ShortName, ShortFileName->Name, Info->ShortNameLength); + } + else + { + Info->ShortName[0] = 0; + Info->ShortNameLength = 0; + } + Info->CreationTime.QuadPart = FileName->CreationTime; Info->LastAccessTime.QuadPart = FileName->LastAccessTime; Info->LastWriteTime.QuadPart = FileName->LastWriteTime; @@ -271,9 +285,6 @@ // Info->FileIndex=; Info->EaSize = 0; - - Info->ShortName[0] = 0; - Info->ShortNameLength = 0; return STATUS_SUCCESS; }
10 years, 2 months
1
0
0
0
[hpoussin] 65027: [NTFS] Prefer long file name when naming objects We now always see the long file name of an object when browsing NTFS partitions.
by hpoussin@svn.reactos.org
Author: hpoussin Date: Sun Oct 26 19:10:17 2014 New Revision: 65027 URL:
http://svn.reactos.org/svn/reactos?rev=65027&view=rev
Log: [NTFS] Prefer long file name when naming objects We now always see the long file name of an object when browsing NTFS partitions. Modified: trunk/reactos/drivers/filesystems/ntfs/attrib.c trunk/reactos/drivers/filesystems/ntfs/dirctl.c trunk/reactos/drivers/filesystems/ntfs/fcb.c trunk/reactos/drivers/filesystems/ntfs/ntfs.h Modified: trunk/reactos/drivers/filesystems/ntfs/attrib.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/a…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/attrib.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/attrib.c [iso-8859-1] Sun Oct 26 19:10:17 2014 @@ -287,16 +287,25 @@ } PFILENAME_ATTRIBUTE -GetFileNameFromRecord(PFILE_RECORD_HEADER FileRecord) +GetFileNameFromRecord(PFILE_RECORD_HEADER FileRecord, UCHAR NameType) { PNTFS_ATTR_RECORD Attribute; + PFILENAME_ATTRIBUTE Name; Attribute = (PNTFS_ATTR_RECORD)((ULONG_PTR)FileRecord + FileRecord->AttributeOffset); while (Attribute < (PNTFS_ATTR_RECORD)((ULONG_PTR)FileRecord + FileRecord->BytesInUse) && Attribute->Type != AttributeEnd) { if (Attribute->Type == AttributeFileName) - return (PFILENAME_ATTRIBUTE)((ULONG_PTR)Attribute + Attribute->Resident.ValueOffset); + { + Name = (PFILENAME_ATTRIBUTE)((ULONG_PTR)Attribute + Attribute->Resident.ValueOffset); + if (Name->NameType == NameType || + (Name->NameType == NTFS_FILE_NAME_WIN32_AND_DOS && NameType == NTFS_FILE_NAME_WIN32) || + (Name->NameType == NTFS_FILE_NAME_WIN32_AND_DOS && NameType == NTFS_FILE_NAME_DOS)) + { + return Name; + } + } Attribute = (PNTFS_ATTR_RECORD)((ULONG_PTR)Attribute + Attribute->Length); } Modified: trunk/reactos/drivers/filesystems/ntfs/dirctl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/d…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/dirctl.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/dirctl.c [iso-8859-1] Sun Oct 26 19:10:17 2014 @@ -135,7 +135,7 @@ DPRINT("NtfsGetNameInformation() called\n"); - FileName = GetFileNameFromRecord(FileRecord); + FileName = GetFileNameFromRecord(FileRecord, NTFS_FILE_NAME_WIN32); ASSERT(FileName != NULL); Length = FileName->NameLength * sizeof (WCHAR); @@ -163,7 +163,7 @@ DPRINT("NtfsGetDirectoryInformation() called\n"); - FileName = GetFileNameFromRecord(FileRecord); + FileName = GetFileNameFromRecord(FileRecord, NTFS_FILE_NAME_WIN32); ASSERT(FileName != NULL); Length = FileName->NameLength * sizeof (WCHAR); @@ -204,7 +204,7 @@ DPRINT("NtfsGetFullDirectoryInformation() called\n"); - FileName = GetFileNameFromRecord(FileRecord); + FileName = GetFileNameFromRecord(FileRecord, NTFS_FILE_NAME_WIN32); ASSERT(FileName != NULL); Length = FileName->NameLength * sizeof (WCHAR); @@ -246,7 +246,7 @@ DPRINT("NtfsGetBothDirectoryInformation() called\n"); - FileName = GetFileNameFromRecord(FileRecord); + FileName = GetFileNameFromRecord(FileRecord, NTFS_FILE_NAME_WIN32); ASSERT(FileName != NULL); Length = FileName->NameLength * sizeof (WCHAR); Modified: trunk/reactos/drivers/filesystems/ntfs/fcb.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/fcb.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/fcb.c [iso-8859-1] Sun Oct 26 19:10:17 2014 @@ -289,7 +289,7 @@ return NULL; } - FileName = GetFileNameFromRecord(MftRecord); + FileName = GetFileNameFromRecord(MftRecord, NTFS_FILE_NAME_WIN32); if (!FileName) { ExFreePoolWithTag(MftRecord, TAG_NTFS); @@ -391,7 +391,7 @@ DPRINT1("NtfsMakeFCBFromDirEntry(%p, %p, %wZ, %p, %p)\n", Vcb, DirectoryFCB, Name, Record, fileFCB); - FileName = GetFileNameFromRecord(Record); + FileName = GetFileNameFromRecord(Record, NTFS_FILE_NAME_WIN32); if (!FileName) { return STATUS_OBJECT_NAME_NOT_FOUND; // Not sure that's the best here Modified: trunk/reactos/drivers/filesystems/ntfs/ntfs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/n…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/ntfs.h [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/ntfs.h [iso-8859-1] Sun Oct 26 19:10:17 2014 @@ -448,7 +448,7 @@ NtfsDumpFileAttributes(PFILE_RECORD_HEADER FileRecord); PFILENAME_ATTRIBUTE -GetFileNameFromRecord(PFILE_RECORD_HEADER FileRecord); +GetFileNameFromRecord(PFILE_RECORD_HEADER FileRecord, UCHAR NameType); /* blockdev.c */
10 years, 2 months
1
0
0
0
[hpoussin] 65026: [NTFS] Correctly read indexes This fixes (at least) an infinite loop when trying to mount some partitions.
by hpoussin@svn.reactos.org
Author: hpoussin Date: Sun Oct 26 19:10:04 2014 New Revision: 65026 URL:
http://svn.reactos.org/svn/reactos?rev=65026&view=rev
Log: [NTFS] Correctly read indexes This fixes (at least) an infinite loop when trying to mount some partitions. Modified: trunk/reactos/drivers/filesystems/ntfs/mft.c Modified: trunk/reactos/drivers/filesystems/ntfs/mft.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/m…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/mft.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/mft.c [iso-8859-1] Sun Oct 26 19:10:04 2014 @@ -631,9 +631,9 @@ IndexBuffer = (PINDEX_BUFFER)IndexRecord; ASSERT(IndexBuffer->Ntfs.Type == 'XDNI'); ASSERT(IndexBuffer->Header.AllocatedSize + 0x18 == IndexBlockSize); - IndexEntry = (PINDEX_ENTRY_ATTRIBUTE)(&IndexBuffer->Header + IndexBuffer->Header.FirstEntryOffset); - IndexEntryEnd = (PINDEX_ENTRY_ATTRIBUTE)(&IndexBuffer->Header + IndexBuffer->Header.TotalSizeOfEntries); - //ASSERT(IndexEntryEnd <= (PINDEX_ENTRY_ATTRIBUTE)((ULONG_PTR)IndexBuffer + IndexBlockSize)); FIXME: Why doesn't it work? + IndexEntry = (PINDEX_ENTRY_ATTRIBUTE)((ULONG_PTR)&IndexBuffer->Header + IndexBuffer->Header.FirstEntryOffset); + IndexEntryEnd = (PINDEX_ENTRY_ATTRIBUTE)((ULONG_PTR)&IndexBuffer->Header + IndexBuffer->Header.TotalSizeOfEntries); + ASSERT(IndexEntryEnd <= (PINDEX_ENTRY_ATTRIBUTE)((ULONG_PTR)IndexBuffer + IndexBlockSize)); while (IndexEntry < IndexEntryEnd && !(IndexEntry->Flags & NTFS_INDEX_ENTRY_END)) @@ -653,6 +653,7 @@ } ++CurrentEntry; + ASSERT(IndexEntry->Length >= sizeof(INDEX_ENTRY_ATTRIBUTE)); IndexEntry = (PINDEX_ENTRY_ATTRIBUTE)((PCHAR)IndexEntry + IndexEntry->Length); }
10 years, 2 months
1
0
0
0
[hpoussin] 65025: [NTFS] Fix some debug prints
by hpoussin@svn.reactos.org
Author: hpoussin Date: Sun Oct 26 19:09:52 2014 New Revision: 65025 URL:
http://svn.reactos.org/svn/reactos?rev=65025&view=rev
Log: [NTFS] Fix some debug prints Modified: trunk/reactos/drivers/filesystems/ntfs/mft.c Modified: trunk/reactos/drivers/filesystems/ntfs/mft.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/m…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/mft.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/mft.c [iso-8859-1] Sun Oct 26 19:09:52 2014 @@ -85,7 +85,7 @@ PCWSTR Name, ULONG NameLength) { - DPRINT1("FindAttributeHelper(%p, %p, %p, 0x%x, %S, %u)\n", Vcb, AttrRecord, AttrRecordEnd, Type, Name, NameLength); + DPRINT("FindAttributeHelper(%p, %p, %p, 0x%x, %S, %u)\n", Vcb, AttrRecord, AttrRecordEnd, Type, Name, NameLength); while (AttrRecord < AttrRecordEnd) { @@ -146,7 +146,7 @@ PWCHAR AttrName; AttrName = (PWCHAR)((PCHAR)AttrRecord + AttrRecord->NameOffset); - DPRINT("%s, %s\n", AttrName, Name); + DPRINT("%.*S, %.*S\n", AttrRecord->NameLength, AttrName, NameLength, Name); if (RtlCompareMemory(AttrName, Name, NameLength << 1) == (NameLength << 1)) { /* Found it, fill up the context and return. */ @@ -180,7 +180,7 @@ PNTFS_ATTR_RECORD AttrRecord; PNTFS_ATTR_RECORD AttrRecordEnd; - DPRINT1("FindAttribute(%p, %p, %u, %S, %u, %p)\n", Vcb, MftRecord, Type, Name, NameLength, AttrCtx); + DPRINT("FindAttribute(%p, %p, 0x%x, %S, %u, %p)\n", Vcb, MftRecord, Type, Name, NameLength, AttrCtx); AttrRecord = (PNTFS_ATTR_RECORD)((PCHAR)MftRecord + MftRecord->AttributeOffset); AttrRecordEnd = (PNTFS_ATTR_RECORD)((PCHAR)MftRecord + Vcb->NtfsInfo.BytesPerFileRecord); @@ -397,12 +397,12 @@ { ULONGLONG BytesRead; - DPRINT1("ReadFileRecord(%p, %I64x, %p)\n", Vcb, index, file); + DPRINT("ReadFileRecord(%p, %I64x, %p)\n", Vcb, index, file); BytesRead = ReadAttribute(Vcb, Vcb->MFTContext, index * Vcb->NtfsInfo.BytesPerFileRecord, (PCHAR)file, Vcb->NtfsInfo.BytesPerFileRecord); if (BytesRead != Vcb->NtfsInfo.BytesPerFileRecord) { - DPRINT1("ReadFileRecord failed: %u read, %u expected\n", BytesRead, Vcb->NtfsInfo.BytesPerFileRecord); + DPRINT1("ReadFileRecord failed: %I64u read, %u expected\n", BytesRead, Vcb->NtfsInfo.BytesPerFileRecord); return STATUS_PARTIAL_COPY; } @@ -507,7 +507,7 @@ NTSTATUS Status; ULONG CurrentEntry = 0; - DPRINT1("NtfsFindMftRecord(%p, %I64d, %wZ, %p, %u, %p)\n", Vcb, MFTIndex, FileName, FirstEntry, DirSearch, OutMFTIndex); + DPRINT("NtfsFindMftRecord(%p, %I64d, %wZ, %p, %u, %p)\n", Vcb, MFTIndex, FileName, FirstEntry, DirSearch, OutMFTIndex); MftRecord = ExAllocatePoolWithTag(NonPagedPool, Vcb->NtfsInfo.BytesPerFileRecord, @@ -686,13 +686,13 @@ NTSTATUS Status; ULONG FirstEntry = 0; - DPRINT1("NtfsLookupFileAt(%p, %wZ, %p, %p, %I64x)\n", Vcb, PathName, FileRecord, DataContext, CurrentMFTIndex); + DPRINT("NtfsLookupFileAt(%p, %wZ, %p, %p, %I64x)\n", Vcb, PathName, FileRecord, DataContext, CurrentMFTIndex); FsRtlDissectName(*PathName, &Current, &Remaining); while (Current.Length != 0) { - DPRINT1("Current: %wZ\n", &Current); + DPRINT("Current: %wZ\n", &Current); Status = NtfsFindMftRecord(Vcb, CurrentMFTIndex, &Current, &FirstEntry, FALSE, &CurrentMFTIndex); if (!NT_SUCCESS(Status)) @@ -762,11 +762,12 @@ { NTSTATUS Status; - DPRINT1("NtfsFindFileAt(%p, %wZ, %p, %p, %p, %p, %I64x)\n", Vcb, SearchPattern, FirstEntry, FileRecord, DataContext, MFTIndex, CurrentMFTIndex); + DPRINT("NtfsFindFileAt(%p, %wZ, %p, %p, %p, %p, %I64x)\n", Vcb, SearchPattern, FirstEntry, FileRecord, DataContext, MFTIndex, CurrentMFTIndex); Status = NtfsFindMftRecord(Vcb, CurrentMFTIndex, SearchPattern, FirstEntry, TRUE, &CurrentMFTIndex); if (!NT_SUCCESS(Status)) { + DPRINT("NtfsFindFileAt: NtfsFindMftRecord() failed with status 0x%08lx\n", Status); return Status; }
10 years, 2 months
1
0
0
0
[pschweitzer] 65024: [FASTFAT] Acquire DirResource in DoQuery() before attempting to play with FCBs. This is dedicated to Thomas ; -)
by pschweitzer@svn.reactos.org
Author: pschweitzer Date: Sun Oct 26 18:48:30 2014 New Revision: 65024 URL:
http://svn.reactos.org/svn/reactos?rev=65024&view=rev
Log: [FASTFAT] Acquire DirResource in DoQuery() before attempting to play with FCBs. This is dedicated to Thomas ;-) Modified: trunk/reactos/drivers/filesystems/fastfat/dir.c Modified: trunk/reactos/drivers/filesystems/fastfat/dir.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
============================================================================== --- trunk/reactos/drivers/filesystems/fastfat/dir.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fastfat/dir.c [iso-8859-1] Sun Oct 26 18:48:30 2014 @@ -504,6 +504,13 @@ DirContext.ShortNameU.Buffer = ShortNameBuffer; DirContext.ShortNameU.MaximumLength = sizeof(ShortNameBuffer); + if (!ExAcquireResourceExclusiveLite(&IrpContext->DeviceExt->DirResource, + (BOOLEAN)(IrpContext->Flags & IRPCONTEXT_CANWAIT))) + { + ExReleaseResourceLite(&pFcb->MainResource); + return VfatQueueRequest(IrpContext); + } + while ((Status == STATUS_SUCCESS) && (BufferLength > 0)) { Status = FindFile(IrpContext->DeviceExt, @@ -579,6 +586,7 @@ IrpContext->Irp->IoStatus.Information = Stack->Parameters.QueryDirectory.Length - BufferLength; } + ExReleaseResourceLite(&IrpContext->DeviceExt->DirResource); ExReleaseResourceLite(&pFcb->MainResource); return Status;
10 years, 2 months
1
0
0
0
[ekohl] 65023: [NTOS:SE] Remove the old access check code in SepAccessCheckEx and use the new code instead. The new access check code is a lot better than the old code, but it makes the boot and in...
by ekohl@svn.reactos.org
Author: ekohl Date: Sun Oct 26 18:39:58 2014 New Revision: 65023 URL:
http://svn.reactos.org/svn/reactos?rev=65023&view=rev
Log: [NTOS:SE] Remove the old access check code in SepAccessCheckEx and use the new code instead. The new access check code is a lot better than the old code, but it makes the boot and install fail. This is caused by some kernel objects which are accessed using insufficient access rights. Therefore I added a little hack that shows a warning when insufficient rights are granted for an object and access is granted anyway. Modified: trunk/reactos/ntoskrnl/se/accesschk.c Modified: trunk/reactos/ntoskrnl/se/accesschk.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/accesschk.c?re…
============================================================================== --- trunk/reactos/ntoskrnl/se/accesschk.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/se/accesschk.c [iso-8859-1] Sun Oct 26 18:39:58 2014 @@ -17,8 +17,6 @@ /* PRIVATE FUNCTIONS **********************************************************/ - -#define OLD_ACCESS_CHECK BOOLEAN NTAPI SepAccessCheckEx(IN PSECURITY_DESCRIPTOR SecurityDescriptor, @@ -48,6 +46,8 @@ NTSTATUS Status; PAGED_CODE(); + DPRINT("SepAccessCheckEx()\n"); + /* Check for no access desired */ if (!DesiredAccess) { @@ -210,11 +210,6 @@ { if (SepSidInToken(Token, Sid)) { -#ifdef OLD_ACCESS_CHECK - PreviouslyGrantedAccess = 0; - Status = STATUS_ACCESS_DENIED; - goto ReturnCommonStatus; -#else /* Map access rights from the ACE */ TempAccess = CurrentAce->AccessMask; RtlMapGenericMask(&TempAccess, GenericMapping); @@ -222,25 +217,21 @@ /* Leave if a remaining right must be denied */ if (RemainingAccess & TempAccess) break; -#endif } } else if (CurrentAce->Header.AceType == ACCESS_ALLOWED_ACE_TYPE) { if (SepSidInToken(Token, Sid)) { -#ifdef OLD_ACCESS_CHECK - TempAccess = CurrentAce->AccessMask; - RtlMapGenericMask(&TempAccess, GenericMapping); - PreviouslyGrantedAccess |= TempAccess; -#else /* Map access rights from the ACE */ TempAccess = CurrentAce->AccessMask; + DPRINT("TempAccess 0x%08lx\n", TempAccess); RtlMapGenericMask(&TempAccess, GenericMapping); /* Remove granted rights */ + DPRINT("RemainingAccess 0x%08lx TempAccess 0x%08lx\n", RemainingAccess, TempAccess); RemainingAccess &= ~TempAccess; -#endif + DPRINT("RemainingAccess 0x%08lx\n", RemainingAccess); } } else @@ -253,58 +244,35 @@ CurrentAce = (PACE)((ULONG_PTR)CurrentAce + CurrentAce->Header.AceSize); } -#ifdef OLD_ACCESS_CHECK - DPRINT("PreviouslyGrantedAccess %08lx\n DesiredAccess %08lx\n", - PreviouslyGrantedAccess, DesiredAccess); - - PreviouslyGrantedAccess &= DesiredAccess; - - if ((PreviouslyGrantedAccess & ~VALID_INHERIT_FLAGS) == - (DesiredAccess & ~VALID_INHERIT_FLAGS)) - { - Status = STATUS_SUCCESS; - goto ReturnCommonStatus; - } - else - { - DPRINT1("HACK: Should deny access for caller: granted 0x%lx, desired 0x%lx (generic mapping %p).\n", - PreviouslyGrantedAccess, DesiredAccess, GenericMapping); - //*AccessStatus = STATUS_ACCESS_DENIED; - //return FALSE; - PreviouslyGrantedAccess = DesiredAccess; - Status = STATUS_SUCCESS; - goto ReturnCommonStatus; - } -#else DPRINT("DesiredAccess %08lx\nPreviouslyGrantedAccess %08lx\nRemainingAccess %08lx\n", DesiredAccess, PreviouslyGrantedAccess, RemainingAccess); /* Fail if some rights have not been granted */ if (RemainingAccess != 0) { - *GrantedAccess = 0; + DPRINT1("HACK: RemainingAccess = 0x%08lx DesiredAccess = 0x%08lx\n", RemainingAccess, DesiredAccess); +#if 0 + /* HACK HACK HACK */ Status = STATUS_ACCESS_DENIED; goto ReturnCommonStatus; +#endif } /* Set granted access rights */ PreviouslyGrantedAccess |= DesiredAccess; - DPRINT("GrantedAccess %08lx\n", *GrantedAccess); - /* Fail if no rights have been granted */ if (PreviouslyGrantedAccess == 0) { + DPRINT1("PreviouslyGrantedAccess == 0 DesiredAccess = %08lx\n", DesiredAccess); Status = STATUS_ACCESS_DENIED; goto ReturnCommonStatus; } Status = STATUS_SUCCESS; goto ReturnCommonStatus; -#endif ReturnCommonStatus: - ResultListLength = UseResultList ? ObjectTypeListLength : 1; for (i = 0; i < ResultListLength; i++) {
10 years, 2 months
1
0
0
0
← Newer
1
...
11
12
13
14
15
16
17
...
73
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Results per page:
10
25
50
100
200