mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
IoStatusBlock is _not_ an optional parameter.
svn path=/trunk/; revision=6548
This commit is contained in:
parent
47651b5c5d
commit
98682c7937
1 changed files with 3 additions and 2 deletions
|
@ -2252,7 +2252,8 @@ HANDLE PICE_open (LPCWSTR lpPathName, int iReadWrite)
|
|||
DWORD dwAccessMask = 0;
|
||||
DWORD dwShareMode = 0;
|
||||
UNICODE_STRING TmpFileName;
|
||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||
IO_STATUS_BLOCK StatusBlock;
|
||||
HANDLE hfile;
|
||||
NTSTATUS status;
|
||||
|
||||
|
@ -2287,7 +2288,7 @@ HANDLE PICE_open (LPCWSTR lpPathName, int iReadWrite)
|
|||
status = NtOpenFile( &hfile,
|
||||
dwAccessMask,
|
||||
&ObjectAttributes,
|
||||
NULL, dwShareMode, FILE_NO_INTERMEDIATE_BUFFERING);
|
||||
&StatusBlock, dwShareMode, FILE_NO_INTERMEDIATE_BUFFERING);
|
||||
//BUG BUG check status!!!
|
||||
if( !NT_SUCCESS( status ) ){
|
||||
DPRINT((0,"PICE_open: NtOpenFile error: %x\n", status));
|
||||
|
|
Loading…
Reference in a new issue