Added test case + fixed a macro redefinition warning

This commit is contained in:
ergo720 2021-05-21 19:25:22 +02:00
parent 2e1ed31aaa
commit 8cc4b10ce0
2 changed files with 4 additions and 2 deletions

View File

@ -145,6 +145,8 @@ xbox::hresult_xt WINAPI xbox::EMUPATCH(XAudioDownloadEffectsImage)
*/
LOG_TEST_CASE("Loading dsp images from xbe sections is currently not yet supported");
result = S_OK;//this line should be removed once the section loading code was implemented.
}
else { // load from file
@ -157,7 +159,7 @@ xbox::hresult_xt WINAPI xbox::EMUPATCH(XAudioDownloadEffectsImage)
ANSI_STRING file_name;
IO_STATUS_BLOCK io_status_block;
RtlInitAnsiString(&file_name, pszImageName);
XB_InitializeObjectAttributes(&obj, &file_name, OBJ_CASE_INSENSITIVE, ObDosDevicesDirectory());
XB_InitializeObjectAttributes(&obj, &file_name, obj_case_insensitive, ObDosDevicesDirectory());
ntstatus_xt NtStatusCreateFile;
//LARGE_INTEGER tmp_LargeInt;
//tmp_LargeInt.QuadPart= dwImageSize;

View File

@ -35,7 +35,7 @@ typedef struct _OBJECT_HEADER_NAME_INFO {
OBJECT_STRING Name;
} OBJECT_HEADER_NAME_INFO, *POBJECT_HEADER_NAME_INFO;
#define OBJ_CASE_INSENSITIVE 0x40
inline constexpr dword_xt obj_case_insensitive = 0x40;
#define ObDosDevicesDirectory() ((HANDLE)-3)
#define ObWin32NamedObjectsDirectory() ((HANDLE)-4)