* devices.in (dev_storage): Use native NT device name for kmsg mailslot.
* devices.cc: Regenerate. * fhandler.cc (fhandler_base::operator =): Use path_conv assignment operator. (fhandler_base::set_name): Ditto. (fhandler_base::open): Use NT native path in debug output. * fhandler_mailslot.cc: Convert to NT native function calls. * ntdll.h (struct _FILE_MAILSLOT_SET_INFORMATION): Define. (NtCreateMailslotFile): Declare. * path.cc (path_conv::set_normalized_path): Don't set wide_path to NULL. (path_conv::set_name): Remove unused function. * path.h (path_conv::set_name): Drop declaration. (path_conv::operator =): Define.
This commit is contained in:
@ -245,7 +245,6 @@ class path_conv
|
||||
{path[0] = '\0';}
|
||||
|
||||
~path_conv ();
|
||||
void set_name (const char *win32, const char *posix);
|
||||
inline char *get_win32 () { return path; }
|
||||
PUNICODE_STRING get_nt_native_path ();
|
||||
POBJECT_ATTRIBUTES get_object_attr (OBJECT_ATTRIBUTES &attr,
|
||||
@ -256,6 +255,13 @@ class path_conv
|
||||
operator DWORD &() {return fileattr;}
|
||||
operator int () {return fileattr; }
|
||||
char operator [](int i) const {return path[i];}
|
||||
path_conv &operator =(path_conv &pc)
|
||||
{
|
||||
memcpy (this, &pc, pc.size ());
|
||||
set_normalized_path (pc.normalized_path, false);
|
||||
wide_path = NULL;
|
||||
return *this;
|
||||
}
|
||||
DWORD get_devn () const {return dev.devn;}
|
||||
short get_unitn () const {return dev.minor;}
|
||||
DWORD file_attributes () const {return fileattr;}
|
||||
|
Reference in New Issue
Block a user