Mike Hearn wrote:
ChangeLog: Pass -Embedding switch to EXE servers, more tracing
diff -u -p -r1.15 rpc.c --- dlls/ole32/rpc.c 15 Jul 2004 22:07:44 -0000 1.15 +++ dlls/ole32/rpc.c 21 Jul 2004 22:43:59 -0000 @@ -471,8 +471,10 @@ create_server(REFCLSID rclsid) { char buf[200]; HRESULT hres = E_UNEXPECTED; char xclsid[80];
- WCHAR dllName[MAX_PATH+1];
- DWORD dllNameLen = sizeof(dllName);
- WCHAR exe[MAX_PATH+1];
- DWORD exelen = sizeof(exe);
- static const WCHAR embedding[] = { ' ', '-','E','m','b','e','d','d','i','n','g',0 };
- WCHAR command[MAX_PATH+sizeof(embedding)+1];
On a side note, what exactly is a WCHAR? Is it a 'char' or a 'unicode char' (2bytes)?
This in relation to sizeof(embedding) instead of sizeof(embedding)/sizeof(WCHAR)? --- Jeroen
On Mon, Jul 26, 2004 at 06:24:48PM +0200, Jeroen Janssen wrote:
Mike Hearn wrote:
ChangeLog: Pass -Embedding switch to EXE servers, more tracing
diff -u -p -r1.15 rpc.c --- dlls/ole32/rpc.c 15 Jul 2004 22:07:44 -0000 1.15 +++ dlls/ole32/rpc.c 21 Jul 2004 22:43:59 -0000 @@ -471,8 +471,10 @@ create_server(REFCLSID rclsid) { char buf[200]; HRESULT hres = E_UNEXPECTED; char xclsid[80];
- WCHAR dllName[MAX_PATH+1];
- DWORD dllNameLen = sizeof(dllName);
- WCHAR exe[MAX_PATH+1];
- DWORD exelen = sizeof(exe);
- static const WCHAR embedding[] = { ' ',
'-','E','m','b','e','d','d','i','n','g',0 };
- WCHAR command[MAX_PATH+sizeof(embedding)+1];
On a side note, what exactly is a WCHAR? Is it a 'char' or a 'unicode char' (2bytes)?
This in relation to sizeof(embedding) instead of sizeof(embedding)/sizeof(WCHAR)?
It is a 16bit entity, like in Windows.
Ciao, Marcus