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.

svn path=/trunk/; revision=71039
This commit is contained in:
Hermès Bélusca-Maïto
2016-03-23 21:24:28 +00:00
parent d0b46d4b4f
commit 8699bf007d
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -1893,7 +1893,13 @@ static NTSTATUS STDCALL stream_set_end_of_file_information(device_extension* Vcb
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);
@@ -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