* shared.cc (shared_name): New function for WCHAR names.
(open_shared): Take name parameter as WCHAR. Accommodate throughout. * shared_info.h ((CURR_SHARED_MAGIC): Redefine. (shared_name): Add declaration for function taking a WCHAR name. (open_shared): Change declaration according to above change. * pinfo.cc (pinfo::init) : Accommodate above change.
This commit is contained in:
@ -31,7 +31,7 @@ public:
|
||||
|
||||
#define SHARED_INFO_CB 39328
|
||||
|
||||
#define CURR_SHARED_MAGIC 0x398d8baU
|
||||
#define CURR_SHARED_MAGIC 0x22f9ff0bU
|
||||
|
||||
#define USER_VERSION 1 // increment when mount table changes and
|
||||
#define USER_VERSION_MAGIC CYGWIN_VERSION_MAGIC (USER_MAGIC, USER_VERSION)
|
||||
@ -98,8 +98,10 @@ struct console_state
|
||||
HANDLE get_shared_parent_dir ();
|
||||
HANDLE get_session_parent_dir ();
|
||||
char *__stdcall shared_name (char *, const char *, int);
|
||||
void *__stdcall open_shared (const char *name, int n, HANDLE &shared_h, DWORD size,
|
||||
shared_locations&, PSECURITY_ATTRIBUTES psa = &sec_all,
|
||||
WCHAR *__stdcall shared_name (WCHAR *, const WCHAR *, int);
|
||||
void *__stdcall open_shared (const WCHAR *name, int n, HANDLE &shared_h,
|
||||
DWORD size, shared_locations&,
|
||||
PSECURITY_ATTRIBUTES psa = &sec_all,
|
||||
DWORD access = FILE_MAP_READ | FILE_MAP_WRITE);
|
||||
extern void user_shared_create (bool reinit);
|
||||
extern void user_shared_initialize ();
|
||||
|
Reference in New Issue
Block a user