[VGA_NEW]

Fix build with msvc

svn path=/branches/cmake-bringup/; revision=50556
This commit is contained in:
Timo Kreuzer 2011-01-29 14:57:40 +00:00
parent e3d0802c23
commit a042b23093
2 changed files with 18 additions and 14 deletions

View file

@ -11,7 +11,11 @@ add_library(vga SHARED ${CMAKE_CURRENT_BINARY_DIR}/vga_vga.h.gch ${SOURCE})
target_link_libraries(vga libcntpr)
if(MSVC)
set_target_properties(vga PROPERTIES COMPILE_FLAGS "/Gz")
else()
set_target_properties(vga PROPERTIES COMPILE_FLAGS "-mrtd -fno-builtin")
endif()
set_module_type(vga kernelmodedriver)
add_importlibs(vga videoprt)

View file

@ -846,11 +846,11 @@ Return Value:
case IOCTL_VIDEO_QUERY_PUBLIC_ACCESS_RANGES:
{
VideoDebugPrint((2, "VgaStartIO - Query Public Address Ranges\n"));
PVIDEO_PUBLIC_ACCESS_RANGES portAccess;
ULONG physicalPortLength;
VideoDebugPrint((2, "VgaStartIO - Query Public Address Ranges\n"));
if (RequestPacket->OutputBufferLength <
sizeof(VIDEO_PUBLIC_ACCESS_RANGES))
{