Changeset 22475 in vbox
- Timestamp:
- Aug 26, 2009 3:12:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/vbox.c
r22448 r22475 924 924 if (!pCmd) 925 925 { 926 DISPDBG((0, "VBoxDISP::vboxVHWAQueryHostInfo 1: vboxVHWACommandCreate failed\n"));926 DISPDBG((0, "VBoxDISP::vboxVHWAQueryHostInfo2: vboxVHWACommandCreate failed\n")); 927 927 return NULL; 928 928 } … … 948 948 int vboxVHWAInitHostInfo1(PPDEV ppdev) 949 949 { 950 VBOXVHWACMD_QUERYINFO1* pInfo = vboxVHWAQueryHostInfo1(ppdev); 950 VBOXVHWACMD_QUERYINFO1* pInfo; 951 952 if (!ppdev->bHGSMISupported) 953 return VERR_NOT_SUPPORTED; 954 955 pInfo = vboxVHWAQueryHostInfo1(ppdev); 951 956 if(!pInfo) 952 957 { … … 969 974 int vboxVHWAInitHostInfo2(PPDEV ppdev, DWORD *pFourCC) 970 975 { 971 VBOXVHWACMD_QUERYINFO2* pInfo = vboxVHWAQueryHostInfo2(ppdev, ppdev->vhwaInfo.numFourCC);976 VBOXVHWACMD_QUERYINFO2* pInfo; 972 977 int rc = VINF_SUCCESS; 978 979 if (!ppdev->bHGSMISupported) 980 return VERR_NOT_SUPPORTED; 981 982 pInfo = vboxVHWAQueryHostInfo2(ppdev, ppdev->vhwaInfo.numFourCC); 973 983 974 984 Assert(pInfo); … … 994 1004 { 995 1005 int rc = VERR_GENERAL_FAILURE; 996 VBOXVHWACMD* pCmd = vboxVHWACommandCreate (ppdev, VBOXVHWACMD_TYPE_ENABLE, 0); 1006 VBOXVHWACMD* pCmd; 1007 1008 if (!ppdev->bHGSMISupported) 1009 return VERR_NOT_SUPPORTED; 1010 1011 pCmd = vboxVHWACommandCreate (ppdev, VBOXVHWACMD_TYPE_ENABLE, 0); 997 1012 if (!pCmd) 998 1013 { 999 DISPDBG((0, "VBoxDISP::vboxVHWA QueryHostInfo1: vboxVHWACommandCreate failed\n"));1014 DISPDBG((0, "VBoxDISP::vboxVHWAEnable: vboxVHWACommandCreate failed\n")); 1000 1015 return rc; 1001 1016 } … … 1016 1031 { 1017 1032 int rc = VERR_GENERAL_FAILURE; 1018 VBOXVHWACMD* pCmd = vboxVHWACommandCreate (ppdev, VBOXVHWACMD_TYPE_DISABLE, 0); 1033 VBOXVHWACMD* pCmd; 1034 1035 if (!ppdev->bHGSMISupported) 1036 return VERR_NOT_SUPPORTED; 1037 1038 pCmd = vboxVHWACommandCreate (ppdev, VBOXVHWACMD_TYPE_DISABLE, 0); 1019 1039 if (!pCmd) 1020 1040 { 1021 DISPDBG((0, "VBoxDISP::vboxVHWA QueryHostInfo1: vboxVHWACommandCreate failed\n"));1041 DISPDBG((0, "VBoxDISP::vboxVHWADisable: vboxVHWACommandCreate failed\n")); 1022 1042 return rc; 1023 1043 }
Note:
See TracChangeset
for help on using the changeset viewer.