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
January 2011
----- 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
20 participants
336 discussions
Start a n
N
ew thread
[ekohl] 50474: [NPFS] Check if the whole pipe name fits into the return buffer. Return STATUS_BUFFER_OVERFLOW if it does not fit and copy only a part of the file name in this case.
by ekohl@svn.reactos.org
Author: ekohl Date: Sun Jan 23 14:41:07 2011 New Revision: 50474 URL:
http://svn.reactos.org/svn/reactos?rev=50474&view=rev
Log: [NPFS] Check if the whole pipe name fits into the return buffer. Return STATUS_BUFFER_OVERFLOW if it does not fit and copy only a part of the file name in this case. Modified: trunk/reactos/drivers/filesystems/npfs/dirctl.c Modified: trunk/reactos/drivers/filesystems/npfs/dirctl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs/d…
============================================================================== --- trunk/reactos/drivers/filesystems/npfs/dirctl.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/npfs/dirctl.c [iso-8859-1] Sun Jan 23 14:41:07 2011 @@ -38,6 +38,7 @@ PFILE_FULL_DIR_INFORMATION FullDirBuffer; PFILE_BOTH_DIR_INFORMATION BothDirBuffer; ULONG InfoSize = 0; + ULONG NameLength; Stack = IoGetCurrentIrpStackLocation(Irp); @@ -160,6 +161,19 @@ if (PipeIndex >= FileIndex) { + /* Determine whether or not the full pipe name fits into the buffer */ + if (InfoSize + PipeFcb->PipeName.Length > BufferLength) + { + NameLength = BufferLength - InfoSize; + Status = STATUS_BUFFER_OVERFLOW; + } + else + { + NameLength = PipeFcb->PipeName.Length; + Status = STATUS_SUCCESS; + } + + /* Initialize the information struct */ RtlZeroMemory(Buffer, InfoSize); switch (FileInformationClass) @@ -171,12 +185,10 @@ DirectoryBuffer->FileAttributes = FILE_ATTRIBUTE_NORMAL; DirectoryBuffer->EndOfFile.QuadPart = PipeFcb->CurrentInstances; DirectoryBuffer->AllocationSize.LowPart = PipeFcb->MaximumInstances; - DirectoryBuffer->FileNameLength = PipeFcb->PipeName.Length; + DirectoryBuffer->FileNameLength = NameLength; RtlCopyMemory(DirectoryBuffer->FileName, PipeFcb->PipeName.Buffer, - PipeFcb->PipeName.Length); - *Size = InfoSize + PipeFcb->PipeName.Length; - Status = STATUS_SUCCESS; + NameLength); break; case FileFullDirectoryInformation: @@ -186,12 +198,10 @@ FullDirBuffer->FileAttributes = FILE_ATTRIBUTE_NORMAL; FullDirBuffer->EndOfFile.QuadPart = PipeFcb->CurrentInstances; FullDirBuffer->AllocationSize.LowPart = PipeFcb->MaximumInstances; - FullDirBuffer->FileNameLength = PipeFcb->PipeName.Length; + FullDirBuffer->FileNameLength = NameLength; RtlCopyMemory(FullDirBuffer->FileName, PipeFcb->PipeName.Buffer, - PipeFcb->PipeName.Length); - *Size = InfoSize + PipeFcb->PipeName.Length; - Status = STATUS_SUCCESS; + NameLength); break; case FileBothDirectoryInformation: @@ -201,31 +211,29 @@ BothDirBuffer->FileAttributes = FILE_ATTRIBUTE_NORMAL; BothDirBuffer->EndOfFile.QuadPart = PipeFcb->CurrentInstances; BothDirBuffer->AllocationSize.LowPart = PipeFcb->MaximumInstances; - BothDirBuffer->FileNameLength = PipeFcb->PipeName.Length; + BothDirBuffer->FileNameLength = NameLength; RtlCopyMemory(BothDirBuffer->FileName, PipeFcb->PipeName.Buffer, - PipeFcb->PipeName.Length); - *Size = InfoSize + PipeFcb->PipeName.Length; - Status = STATUS_SUCCESS; + NameLength); break; case FileNamesInformation: NamesBuffer = (PFILE_NAMES_INFORMATION)Buffer; NamesBuffer->NextEntryOffset = 0; NamesBuffer->FileIndex = PipeIndex; - NamesBuffer->FileNameLength = PipeFcb->PipeName.Length; + NamesBuffer->FileNameLength = NameLength; RtlCopyMemory(NamesBuffer->FileName, PipeFcb->PipeName.Buffer, - PipeFcb->PipeName.Length); - *Size = InfoSize + PipeFcb->PipeName.Length; - Status = STATUS_SUCCESS; + NameLength); break; default: - DPRINT1("Invalid information class: %lu\n", FileInformationClass); - Status = STATUS_INVALID_INFO_CLASS; + /* Should never happen! */ + ASSERT(FALSE); break; } + + *Size = InfoSize + NameLength; Ccb->u.Directory.FileIndex = PipeIndex; Found = TRUE;
13 years, 11 months
1
0
0
0
[spetreolle] 50473: [CMAKE] WIN32: get build date without overcomplicated string parsing.
by spetreolle@svn.reactos.org
Author: spetreolle Date: Sun Jan 23 13:10:14 2011 New Revision: 50473 URL:
http://svn.reactos.org/svn/reactos?rev=50473&view=rev
Log: [CMAKE] WIN32: get build date without overcomplicated string parsing. Added: branches/cmake-bringup/tools/getdate.c (with props) branches/cmake-bringup/tools/getdate.exe (with props) Modified: branches/cmake-bringup/include/reactos/version.cmake branches/cmake-bringup/tools/getdate.cmd Modified: branches/cmake-bringup/include/reactos/version.cmake URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/reactos/v…
============================================================================== --- branches/cmake-bringup/include/reactos/version.cmake [iso-8859-1] (original) +++ branches/cmake-bringup/include/reactos/version.cmake [iso-8859-1] Sun Jan 23 13:10:14 2011 @@ -1,8 +1,6 @@ macro(today RESULT) if (WIN32) - #execute_process(COMMAND "cmd" "/c" "date" "/T" OUTPUT_VARIABLE ${RESULT}) - #string(REGEX REPLACE "(..)/(..)/(....).*" "\\3\\2\\1" ${RESULT} ${${RESULT}}) - execute_process(COMMAND "${REACTOS_SOURCE_DIR}/tools/getdate.cmd" OUTPUT_VARIABLE ${RESULT}) + execute_process(COMMAND "${REACTOS_SOURCE_DIR}/tools/getdate.exe" OUTPUT_VARIABLE ${RESULT}) string(STRIP ${${RESULT}} ${RESULT}) elseif(UNIX) execute_process(COMMAND "date" "+%Y%m%d" OUTPUT_VARIABLE ${${RESULT}}) Added: branches/cmake-bringup/tools/getdate.c URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/getdate.c?r…
============================================================================== --- branches/cmake-bringup/tools/getdate.c (added) +++ branches/cmake-bringup/tools/getdate.c [iso-8859-1] Sun Jan 23 13:10:14 2011 @@ -1,0 +1,13 @@ +#include <stdio.h> +#include <time.h> +void main() +{ + char curdate[9]; + time_t now; + struct tm *tm_now; + + time(&now); + tm_now=localtime(&now); + strftime(curdate, sizeof(curdate), "%Y%m%d", tm_now); + printf("%s", curdate); +} Propchange: branches/cmake-bringup/tools/getdate.c ------------------------------------------------------------------------------ svn:eol-style = native Modified: branches/cmake-bringup/tools/getdate.cmd URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/getdate.cmd…
============================================================================== --- branches/cmake-bringup/tools/getdate.cmd [iso-8859-1] (original) +++ branches/cmake-bringup/tools/getdate.cmd [iso-8859-1] Sun Jan 23 13:10:14 2011 @@ -1,44 +1,1 @@ -@echo off -goto test - -:get_date_yyyymmdd -setlocal enableextensions enabledelayedexpansion -set _RV= -set _ERR=0 -set _CMD=reg query "HKCU\Control Panel\International" /v sShortDate -for /f "usebackq skip=2 tokens=3,* delims= " %%i in (`%_CMD%`) do ( -rem Amsterdam/Houston servers: -rem Short date format (%%i): M/d/yyyy -rem Sample %DATE%: Thu 05/29/2009 -rem London servers: -rem Short date format (%%i): dd/MM/yyyy -rem Sample %DATE%: 29/05/2009 -set D=!DATE! -rem Uncomment these for debug -rem echo i: %%i -rem echo D: !D! -if "%%i"=="M/d/yyyy" ( -rem I'm assuming the day abbreviation will always be three chars -rem (so we account for four in total, including the space). So -rem far, I can attest that this is definitely the case on Wed & -rem Thu ;-) -set yyyy=!D:~-4! -set mm=!D:~-10,-8! -set dd=!D:~-7,-5! -) else if "%%i"=="dd/MM/yyyy" ( -set yyyy=!D:~-4! -set mm=!D:~-7,-5! -set dd=!D:~-10,-8! -) else ( -echo fatal: I don't understand this system's date format (%%i^) -set _ERR=1 -) -) -set _RETVAL=!yyyy!!mm!!dd! -endlocal & set _YYYYMMDD=%_RETVAL% & set _ERROR=%_ERR% -exit /b %_ERROR% - -:test -call :get_date_yyyymmdd -rem echo formatted date: %_YYYYMMDD% -echo %_YYYYMMDD% +gcc getdate.c -o getdate.exe -s Added: branches/cmake-bringup/tools/getdate.exe URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/getdate.exe…
============================================================================== Binary file - no diff available. Propchange: branches/cmake-bringup/tools/getdate.exe ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream
13 years, 11 months
1
0
0
0
[spetreolle] 50472: [CMAKE] Fix buildno.h when subversion is not installed.
by spetreolle@svn.reactos.org
Author: spetreolle Date: Sun Jan 23 11:27:01 2011 New Revision: 50472 URL:
http://svn.reactos.org/svn/reactos?rev=50472&view=rev
Log: [CMAKE] Fix buildno.h when subversion is not installed. Modified: branches/cmake-bringup/include/reactos/version.cmake Modified: branches/cmake-bringup/include/reactos/version.cmake URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/reactos/v…
============================================================================== --- branches/cmake-bringup/include/reactos/version.cmake [iso-8859-1] (original) +++ branches/cmake-bringup/include/reactos/version.cmake [iso-8859-1] Sun Jan 23 11:27:01 2011 @@ -46,18 +46,19 @@ math(EXPR REACTOS_DLL_VERSION_MAJOR "${KERNEL_VERSION_MAJOR}+42") set(DLL_VERSION_STR "${REACTOS_DLL_VERSION_MAJOR}.${KERNEL_VERSION_MINOR}-${KERNEL_VERSION_BUILD_TYPE}") + +# get svn revision number +set(REVISION "-rUNKNOWN") +set(KERNEL_VERSION_BUILD_HEX "0") if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.svn") find_package(Subversion) if(Subversion_FOUND) subversion_wc_info(${CMAKE_CURRENT_SOURCE_DIR} SVNINFO) if(SVNINFO_WC_REVISION) set(REVISION "-r${SVNINFO_WC_REVISION}") - converttohex(${SVNINFO_WC_REVISION} KERNEL_VERSION_BUILD_HEX) + converttohex(${SVNINFO_WC_REVISION} KERNEL_VERSION_BUILD_HEX) endif() endif() -else() - set(REVISION "-rUNKNOWN") - set(HEXREVISION "0x0") endif() configure_file(include/reactos/version.h.cmake ${REACTOS_BINARY_DIR}/include/reactos/version.h)
13 years, 11 months
1
0
0
0
[tkreuzer] 50471: [CRT] fix definition of _crt_va_arg for amd64
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sat Jan 22 23:22:10 2011 New Revision: 50471 URL:
http://svn.reactos.org/svn/reactos?rev=50471&view=rev
Log: [CRT] fix definition of _crt_va_arg for amd64 Modified: branches/cmake-bringup/include/crt/vadefs.h Modified: branches/cmake-bringup/include/crt/vadefs.h URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/crt/vadef…
============================================================================== --- branches/cmake-bringup/include/crt/vadefs.h [iso-8859-1] (original) +++ branches/cmake-bringup/include/crt/vadefs.h [iso-8859-1] Sat Jan 22 23:22:10 2011 @@ -90,9 +90,9 @@ #define _PTRSIZEOF(n) ((sizeof(n) + sizeof(void*) - 1) & ~(sizeof(void*) - 1)) #define _ISSTRUCT(t) ((sizeof(t) > sizeof(void*)) || (sizeof(t) & (sizeof(t)-1)) != 0) #define _crt_va_start(v,l) ((void)((v) = (va_list)_ADDRESSOF(l) + _PTRSIZEOF(l))) -#define _crt_va_arg(v,t) _ISSTRUCT(t) ? \ +#define _crt_va_arg(v,t) (_ISSTRUCT(t) ? \ (**(t**)(((v) += sizeof(void*)) - sizeof(void*))) : \ - (*(t*)(((v) += sizeof(void*)) - sizeof(void*))) + (*(t*)(((v) += sizeof(void*)) - sizeof(void*)))) #define _crt_va_end(v) ((void)((v) = (va_list)0)) #define __va_copy(d,s) ((void)((d) = (s))) #else //if defined(_M_IA64) || defined(_M_CEE)
13 years, 11 months
1
0
0
0
[tkreuzer] 50470: - _mingw.h: Don't define USE_MINGW_SETJMP_TWO_ARGS for MSVC - _mingw.h: Fix definition of _CRT_ALIGN for MSVC - intrin.h: _InterlockedAddLargeStatistic is not an intrinsic on MSVC...
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sat Jan 22 19:17:10 2011 New Revision: 50470 URL:
http://svn.reactos.org/svn/reactos?rev=50470&view=rev
Log: - _mingw.h: Don't define USE_MINGW_SETJMP_TWO_ARGS for MSVC - _mingw.h: Fix definition of _CRT_ALIGN for MSVC - intrin.h: _InterlockedAddLargeStatistic is not an intrinsic on MSVC for x64 - intrin.h: Fix return type of _InterlockedOr64 - wdm.h: Fix warnings in KfRaiseIrql and RtlExtendedMagicDivide inline implementations - winnt.h: Simplify definition of GetCurrentFiber Modified: branches/cmake-bringup/include/crt/_mingw.h branches/cmake-bringup/include/crt/crtdefs.h branches/cmake-bringup/include/crt/msc/intrin.h branches/cmake-bringup/include/ddk/wdm.h branches/cmake-bringup/include/psdk/winnt.h branches/cmake-bringup/include/xdk/amd64/ke.h branches/cmake-bringup/include/xdk/rtlfuncs.h Modified: branches/cmake-bringup/include/crt/_mingw.h URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/crt/_ming…
============================================================================== --- branches/cmake-bringup/include/crt/_mingw.h [iso-8859-1] (original) +++ branches/cmake-bringup/include/crt/_mingw.h [iso-8859-1] Sat Jan 22 19:17:10 2011 @@ -187,7 +187,7 @@ #endif #endif -#ifdef _WIN64 +#if defined(_WIN64) && !defined(_MSC_VER) #undef USE_MINGW_SETJMP_TWO_ARGS #define USE_MINGW_SETJMP_TWO_ARGS #endif Modified: branches/cmake-bringup/include/crt/crtdefs.h URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/crt/crtde…
============================================================================== --- branches/cmake-bringup/include/crt/crtdefs.h [iso-8859-1] (original) +++ branches/cmake-bringup/include/crt/crtdefs.h [iso-8859-1] Sat Jan 22 19:17:10 2011 @@ -133,7 +133,13 @@ #endif #ifndef _CRT_ALIGN +#if defined (__midl) || defined(__WIDL__) +#define _CRT_ALIGN(x) +#elif defined(_MSC_VER) +#define _CRT_ALIGN(x) __declspec(align(x)) +#else #define _CRT_ALIGN(x) __attribute__ ((aligned(x))) +#endif #endif #ifndef _CRTNOALIAS Modified: branches/cmake-bringup/include/crt/msc/intrin.h URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/crt/msc/i…
============================================================================== --- branches/cmake-bringup/include/crt/msc/intrin.h [iso-8859-1] (original) +++ branches/cmake-bringup/include/crt/msc/intrin.h [iso-8859-1] Sat Jan 22 19:17:10 2011 @@ -45,8 +45,6 @@ #pragma intrinsic(_InterlockedXor16) long _InterlockedXor(volatile long * const value, const long mask); #pragma intrinsic(_InterlockedXor) -long _InterlockedAddLargeStatistic(volatile __int64 * const Addend, const long Value); -#pragma intrinsic(_InterlockedAddLargeStatistic) long _InterlockedDecrement(volatile long * const lpAddend); #pragma intrinsic(_InterlockedDecrement) long _InterlockedIncrement(volatile long * const lpAddend); @@ -60,7 +58,10 @@ unsigned char _interlockedbittestandset(volatile long * a, const long b); #pragma intrinsic(_interlockedbittestandset) -#if defined(_M_AMD64) +#if defined(_M_IX86) +long _InterlockedAddLargeStatistic(volatile __int64 * const Addend, const long Value); +#pragma intrinsic(_InterlockedAddLargeStatistic) +#elif defined(_M_AMD64) __int64 _InterlockedExchange64(volatile __int64 * const Target, const __int64 Value); #pragma intrinsic(_InterlockedExchange64) __int64 _InterlockedExchangeAdd64(volatile __int64 * const Addend, const __int64 Value); @@ -71,7 +72,7 @@ #pragma intrinsic(_InterlockedExchangePointer) __int64 _InterlockedAnd64(volatile __int64 * const value, const __int64 mask); #pragma intrinsic(_InterlockedAnd64) -long _InterlockedOr64(volatile __int64 * const value, const __int64 mask); +__int64 _InterlockedOr64(volatile __int64 * const value, const __int64 mask); #pragma intrinsic(_InterlockedOr64) __int64 _InterlockedCompareExchange64(volatile __int64 * const Destination, const __int64 Exchange, const __int64 Comperand); #pragma intrinsic(_InterlockedCompareExchange64) @@ -133,7 +134,7 @@ #pragma intrinsic(__addgsqword) #endif -//#if defined(_M_IX86) +#if defined(_M_IX86) /*** FS segment addressing ***/ void __writefsbyte(const unsigned long Offset, const unsigned char Data); #pragma intrinsic(__writefsbyte) @@ -159,7 +160,7 @@ #pragma intrinsic(__addfsword) void __addfsdword(const unsigned long Offset, const unsigned int Data); #pragma intrinsic(__addfsdword) -//#endif +#endif /*** Bit manipulation ***/ Modified: branches/cmake-bringup/include/ddk/wdm.h URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/ddk/wdm.h…
============================================================================== --- branches/cmake-bringup/include/ddk/wdm.h [iso-8859-1] (original) +++ branches/cmake-bringup/include/ddk/wdm.h [iso-8859-1] Sat Jan 22 19:17:10 2011 @@ -7897,7 +7897,7 @@ { KIRQL OldIrql; - OldIrql = __readcr8(); + OldIrql = (KIRQL)__readcr8(); //ASSERT(OldIrql <= NewIrql); __writecr8(NewIrql); return OldIrql; @@ -9309,7 +9309,7 @@ ret64 = UnsignedMultiplyHigh(Pos ? Dividend.QuadPart : -Dividend.QuadPart, MagicDivisor.QuadPart); ret64 >>= ShiftCount; - ret.QuadPart = Pos ? ret64 : -ret64; + ret.QuadPart = Pos ? ret64 : -(LONG64)ret64; return ret; } #endif Modified: branches/cmake-bringup/include/psdk/winnt.h URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/psdk/winn…
============================================================================== --- branches/cmake-bringup/include/psdk/winnt.h [iso-8859-1] (original) +++ branches/cmake-bringup/include/psdk/winnt.h [iso-8859-1] Sat Jan 22 19:17:10 2011 @@ -1361,7 +1361,7 @@ #define SEC_RESERVE 0x04000000 #define SEC_COMMIT 0x08000000 #define SEC_NOCACHE 0x10000000 -#define SEC_WRITECOMBINE 0x40000000 +#define SEC_WRITECOMBINE 0x40000000 #define SEC_LARGE_PAGES 0x80000000 #define SECTION_EXTEND_SIZE 16 #define SECTION_MAP_READ 4 @@ -5097,18 +5097,12 @@ GUID *ObjectType; } OBJECT_TYPE_LIST, *POBJECT_TYPE_LIST; -#if defined(__GNUC__) - #if defined(_M_IX86) -static __inline__ PVOID GetCurrentFiber(void) +FORCEINLINE PVOID GetCurrentFiber(VOID) { - void* ret; - __asm__ __volatile__ ( - "movl %%fs:0x10,%0" - : "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */ - ); - return ret; + return (PVOID)(ULONG_PTR)__readfsdword(0x10); } + #elif defined (_M_AMD64) FORCEINLINE PVOID GetCurrentFiber(VOID) { @@ -5118,10 +5112,11 @@ return (PVOID)__readgsqword(FIELD_OFFSET(NT_TIB, FiberData)); #endif } + #elif defined (_M_ARM) PVOID WINAPI GetCurrentFiber(VOID); -#else -#if defined(_M_PPC) + +#elif defined(_M_PPC) static __inline__ __attribute__((always_inline)) unsigned long __readfsdword_winnt(const unsigned long Offset) { unsigned long result; @@ -5133,42 +5128,15 @@ return result; } -#else -#error Unknown architecture -#endif static __inline__ PVOID GetCurrentFiber(void) { return __readfsdword_winnt(0x10); } -#endif - -#elif defined(__WATCOMC__) - -extern PVOID GetCurrentFiber(void); -#pragma aux GetCurrentFiber = \ - "mov eax, dword ptr fs:0x10" \ - value [eax] \ - modify [eax]; - -#elif defined(_MSC_VER) - -#if (_MSC_FULL_VER >= 13012035) - -__inline PVOID GetCurrentFiber(void) { return (PVOID)(ULONG_PTR)__readfsdword(0x10); } - #else - -static __inline PVOID GetCurrentFiber(void) -{ - PVOID p; - __asm mov eax, fs:[10h] - __asm mov [p], eax - return p; -} - -#endif /* _MSC_FULL_VER */ - -#endif /* __GNUC__/__WATCOMC__/_MSC_VER */ +#error Unknown architecture +#endif + + #include "inline_ntcurrentteb.h" Modified: branches/cmake-bringup/include/xdk/amd64/ke.h URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/xdk/amd64…
============================================================================== --- branches/cmake-bringup/include/xdk/amd64/ke.h [iso-8859-1] (original) +++ branches/cmake-bringup/include/xdk/amd64/ke.h [iso-8859-1] Sat Jan 22 19:17:10 2011 @@ -67,7 +67,7 @@ { KIRQL OldIrql; - OldIrql = __readcr8(); + OldIrql = (KIRQL)__readcr8(); //ASSERT(OldIrql <= NewIrql); __writecr8(NewIrql); return OldIrql; Modified: branches/cmake-bringup/include/xdk/rtlfuncs.h URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/xdk/rtlfu…
============================================================================== --- branches/cmake-bringup/include/xdk/rtlfuncs.h [iso-8859-1] (original) +++ branches/cmake-bringup/include/xdk/rtlfuncs.h [iso-8859-1] Sat Jan 22 19:17:10 2011 @@ -2630,7 +2630,7 @@ ret64 = UnsignedMultiplyHigh(Pos ? Dividend.QuadPart : -Dividend.QuadPart, MagicDivisor.QuadPart); ret64 >>= ShiftCount; - ret.QuadPart = Pos ? ret64 : -ret64; + ret.QuadPart = Pos ? ret64 : -(LONG64)ret64; return ret; } #endif
13 years, 11 months
1
0
0
0
[tkreuzer] 50469: [CMAKE] Remove _M_AXP64 definition
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sat Jan 22 18:41:33 2011 New Revision: 50469 URL:
http://svn.reactos.org/svn/reactos?rev=50469&view=rev
Log: [CMAKE] Remove _M_AXP64 definition Modified: branches/cmake-bringup/CMakeLists.txt Modified: branches/cmake-bringup/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/CMakeLists.txt?re…
============================================================================== --- branches/cmake-bringup/CMakeLists.txt [iso-8859-1] (original) +++ branches/cmake-bringup/CMakeLists.txt [iso-8859-1] Sat Jan 22 18:41:33 2011 @@ -124,7 +124,7 @@ if(ARCH MATCHES i386) add_definitions(-D_M_IX86 -D_X86_ -D__i386__) elseif(ARCH MATCHES amd64) - add_definitions(-D_M_AMD64 -D_AMD64_ -D_M_AXP64 -D__x86_64__ -D_WIN64) + add_definitions(-D_M_AMD64 -D_AMD64_ -D__x86_64__ -D_WIN64) elseif(ARCH MATCHES arm) # _M_ARM is already defined by toolchain add_definitions(-D_ARM_ -D__arm__)
13 years, 11 months
1
0
0
0
[ekohl] 50468: [SETUPAPI] Fix a warning.
by ekohl@svn.reactos.org
Author: ekohl Date: Sat Jan 22 18:16:12 2011 New Revision: 50468 URL:
http://svn.reactos.org/svn/reactos?rev=50468&view=rev
Log: [SETUPAPI] Fix a warning. Modified: trunk/reactos/dll/win32/setupapi/cfgmgr.c Modified: trunk/reactos/dll/win32/setupapi/cfgmgr.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/cfgmgr.…
============================================================================== --- trunk/reactos/dll/win32/setupapi/cfgmgr.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/setupapi/cfgmgr.c [iso-8859-1] Sat Jan 22 18:16:12 2011 @@ -2044,7 +2044,7 @@ RpcTryExcept { ret = PNP_GetDeviceList(BindingHandle, - pszFilter, + (LPWSTR)pszFilter, Buffer, &BufferLen, ulFlags);
13 years, 11 months
1
0
0
0
[tkreuzer] 50467: [CMAKE] Copy vadefs.h from amd64 branch
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sat Jan 22 17:52:33 2011 New Revision: 50467 URL:
http://svn.reactos.org/svn/reactos?rev=50467&view=rev
Log: [CMAKE] Copy vadefs.h from amd64 branch Modified: branches/cmake-bringup/include/crt/vadefs.h Modified: branches/cmake-bringup/include/crt/vadefs.h URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/crt/vadef…
============================================================================== --- branches/cmake-bringup/include/crt/vadefs.h [iso-8859-1] (original) +++ branches/cmake-bringup/include/crt/vadefs.h [iso-8859-1] Sat Jan 22 17:52:33 2011 @@ -81,14 +81,24 @@ #define __va_copy(d,s) __builtin_va_copy(d,s) #elif defined(_MSC_VER) -#if defined(_M_IA64) || defined(_M_AMD64) || defined(_M_CEE) -#error Please implement me -#endif - +#if defined(_M_IX86) #define _crt_va_start(v,l) ((void)((v) = (va_list)_ADDRESSOF(l) + _INTSIZEOF(l))) #define _crt_va_arg(v,l) (*(l *)(((v) += _INTSIZEOF(l)) - _INTSIZEOF(l))) #define _crt_va_end(v) ((void)((v) = (va_list)0)) #define __va_copy(d,s) ((void)((d) = (s))) +#elif defined(_M_AMD64) +#define _PTRSIZEOF(n) ((sizeof(n) + sizeof(void*) - 1) & ~(sizeof(void*) - 1)) +#define _ISSTRUCT(t) ((sizeof(t) > sizeof(void*)) || (sizeof(t) & (sizeof(t)-1)) != 0) +#define _crt_va_start(v,l) ((void)((v) = (va_list)_ADDRESSOF(l) + _PTRSIZEOF(l))) +#define _crt_va_arg(v,t) _ISSTRUCT(t) ? \ + (**(t**)(((v) += sizeof(void*)) - sizeof(void*))) : \ + (*(t*)(((v) += sizeof(void*)) - sizeof(void*))) +#define _crt_va_end(v) ((void)((v) = (va_list)0)) +#define __va_copy(d,s) ((void)((d) = (s))) +#else //if defined(_M_IA64) || defined(_M_CEE) +#error Please implement me +#endif + #endif #if !defined(va_copy) && (!defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L)
13 years, 11 months
1
0
0
0
[tkreuzer] 50466: [UNICODE] Fix a warning. (MSC x64)
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sat Jan 22 17:27:42 2011 New Revision: 50466 URL:
http://svn.reactos.org/svn/reactos?rev=50466&view=rev
Log: [UNICODE] Fix a warning. (MSC x64) Modified: branches/cmake-bringup/tools/unicode/wine/unicode.h Modified: branches/cmake-bringup/tools/unicode/wine/unicode.h URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/unicode/win…
============================================================================== --- branches/cmake-bringup/tools/unicode/wine/unicode.h [iso-8859-1] (original) +++ branches/cmake-bringup/tools/unicode/wine/unicode.h [iso-8859-1] Sat Jan 22 17:27:42 2011 @@ -219,7 +219,7 @@ { const WCHAR *s = str; while (*s) s++; - return s - str; + return (unsigned int)(s - str); } WINE_UNICODE_INLINE WCHAR *strcpyW( WCHAR *dst, const WCHAR *src );
13 years, 11 months
1
0
0
0
[tkreuzer] 50465: [CMAKE] - lowerize ARCH string (fixes cmlib) - move definition
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sat Jan 22 17:13:06 2011 New Revision: 50465 URL:
http://svn.reactos.org/svn/reactos?rev=50465&view=rev
Log: [CMAKE] - lowerize ARCH string (fixes cmlib) - move definition Modified: branches/cmake-bringup/CMakeLists.txt Modified: branches/cmake-bringup/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/CMakeLists.txt?re…
============================================================================== --- branches/cmake-bringup/CMakeLists.txt [iso-8859-1] (original) +++ branches/cmake-bringup/CMakeLists.txt [iso-8859-1] Sat Jan 22 17:13:06 2011 @@ -11,6 +11,7 @@ if(NOT ARCH) set(ARCH i386) endif() +string(TOLOWER ${ARCH} ARCH) # Compile options if(ARCH MATCHES i386) @@ -25,10 +26,10 @@ add_definitions(-DTARGET_${ARCH}) - if(ARCH MATCHES i386) - if(MSVC) - add_definitions(-Dinline=__inline) - endif() + if(MSVC) + add_definitions(-Dinline=__inline) + else() + add_definitions(-fshort-wchar) endif() include_directories( @@ -38,10 +39,6 @@ include/reactos include/reactos/wine ${REACTOS_BINARY_DIR}/include) - - if(NOT MSVC) - add_definitions(-fshort-wchar) - endif() add_subdirectory(tools) add_subdirectory(lib)
13 years, 11 months
1
0
0
0
← Newer
1
...
9
10
11
12
13
14
15
...
34
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
Results per page:
10
25
50
100
200