Author: hbelusca Date: Wed Mar 23 21:24:28 2016 New Revision: 71039
URL: http://svn.reactos.org/svn/reactos?rev=71039&view=rev Log: [BTRFS] BUGBUG in fileinfo.c: 'datalen' is used but not initialized!
[NTOSKRNL_VISTA] Add most of the same compile-time definitions as for ntoskrnl proper, since this static library can be seen as part of the kernel! Fixes MSVC build.
Modified: trunk/reactos/drivers/filesystems/btrfs/fileinfo.c trunk/reactos/lib/drivers/ntoskrnl_vista/CMakeLists.txt
Modified: trunk/reactos/drivers/filesystems/btrfs/fileinfo.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/btrfs/f... ============================================================================== --- trunk/reactos/drivers/filesystems/btrfs/fileinfo.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/btrfs/fileinfo.c [iso-8859-1] Wed Mar 23 21:24:28 2016 @@ -1893,7 +1893,13 @@ free_traverse_ptr(&tp); return STATUS_INTERNAL_ERROR; } - + +#ifdef __REACTOS__ + // BUGBUG: FIXME!! + ERR("BUGBUG: datalen is uninitialized! Set it to zero temporarily...\n"); + datalen = 0; +#endif + if (tp.item->size < datalen) { ERR("(%llx,%x,%llx) was %u bytes, expected at least %u\n", tp.item->key.obj_id, tp.item->key.obj_type, tp.item->key.offset, tp.item->size, datalen); free_traverse_ptr(&tp);
Modified: trunk/reactos/lib/drivers/ntoskrnl_vista/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ntoskrnl_vista/... ============================================================================== --- trunk/reactos/lib/drivers/ntoskrnl_vista/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/lib/drivers/ntoskrnl_vista/CMakeLists.txt [iso-8859-1] Wed Mar 23 21:24:28 2016 @@ -1,7 +1,7 @@ remove_definitions(-D_WIN32_WINNT=0x502) add_definitions(-D_WIN32_WINNT=0x600)
-add_definitions(-DUNICODE -D_UNICODE) +add_definitions(-DUNICODE -D_UNICODE -D__NTOSKRNL__ -D_NTOSKRNL_ -D_NTSYSTEM_)
list(APPEND SOURCE fsrtl.c