Commit f1729574 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

rpcss: Enable compilation with long types.

parent cf63513a
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = rpcss.exe MODULE = rpcss.exe
IMPORTS = rpcrt4 advapi32 IMPORTS = rpcrt4 advapi32
......
...@@ -98,7 +98,7 @@ void __cdecl ept_insert(handle_t h, ...@@ -98,7 +98,7 @@ void __cdecl ept_insert(handle_t h,
unsigned32 i; unsigned32 i;
RPC_STATUS rpc_status; RPC_STATUS rpc_status;
WINE_TRACE("(%p, %u, %p, %u, %p)\n", h, num_ents, entries, replace, status); WINE_TRACE("(%p, %lu, %p, %lu, %p)\n", h, num_ents, entries, replace, status);
*status = RPC_S_OK; *status = RPC_S_OK;
...@@ -119,7 +119,7 @@ void __cdecl ept_insert(handle_t h, ...@@ -119,7 +119,7 @@ void __cdecl ept_insert(handle_t h,
&entry->address); &entry->address);
if (rpc_status != RPC_S_OK) if (rpc_status != RPC_S_OK)
{ {
WINE_WARN("TowerExplode failed %u\n", rpc_status); WINE_WARN("TowerExplode failed %lu\n", rpc_status);
*status = rpc_status; *status = rpc_status;
HeapFree(GetProcessHeap(), 0, entry); HeapFree(GetProcessHeap(), 0, entry);
break; /* FIXME: more cleanup? */ break; /* FIXME: more cleanup? */
...@@ -149,7 +149,7 @@ void __cdecl ept_delete(handle_t h, ...@@ -149,7 +149,7 @@ void __cdecl ept_delete(handle_t h,
*status = RPC_S_OK; *status = RPC_S_OK;
WINE_TRACE("(%p, %u, %p, %p)\n", h, num_ents, entries, status); WINE_TRACE("(%p, %lu, %p, %p)\n", h, num_ents, entries, status);
EnterCriticalSection(&csEpm); EnterCriticalSection(&csEpm);
...@@ -215,7 +215,7 @@ void __cdecl ept_map(handle_t h, ...@@ -215,7 +215,7 @@ void __cdecl ept_map(handle_t h,
*status = RPC_S_OK; *status = RPC_S_OK;
*num_towers = 0; *num_towers = 0;
WINE_TRACE("(%p, %p, %p, %p, %u, %p, %p, %p)\n", h, object, map_tower, WINE_TRACE("(%p, %p, %p, %p, %lu, %p, %p, %p)\n", h, object, map_tower,
entry_handle, max_towers, num_towers, towers, status); entry_handle, max_towers, num_towers, towers, status);
rpc_status = TowerExplode(map_tower, &iface, &syntax, &protseq, rpc_status = TowerExplode(map_tower, &iface, &syntax, &protseq,
...@@ -282,7 +282,7 @@ void __cdecl ept_mgmt_delete(handle_t h, ...@@ -282,7 +282,7 @@ void __cdecl ept_mgmt_delete(handle_t h,
twr_p_t tower, twr_p_t tower,
error_status_t *status) error_status_t *status)
{ {
WINE_FIXME("(%p, %d, %p, %p, %p): stub\n", h, object_speced, object, tower, status); WINE_FIXME("(%p, %ld, %p, %p, %p): stub\n", h, object_speced, object, tower, status);
*status = EPT_S_CANT_PERFORM_OP; *status = EPT_S_CANT_PERFORM_OP;
} }
...@@ -84,7 +84,7 @@ HRESULT __cdecl IrotRegister( ...@@ -84,7 +84,7 @@ HRESULT __cdecl IrotRegister(
if (grfFlags & ~(ROTFLAGS_REGISTRATIONKEEPSALIVE|ROTFLAGS_ALLOWANYCLIENT)) if (grfFlags & ~(ROTFLAGS_REGISTRATIONKEEPSALIVE|ROTFLAGS_ALLOWANYCLIENT))
{ {
WINE_ERR("Invalid grfFlags: 0x%08x\n", grfFlags & ~(ROTFLAGS_REGISTRATIONKEEPSALIVE|ROTFLAGS_ALLOWANYCLIENT)); WINE_ERR("Invalid grfFlags: 0x%08lx\n", grfFlags & ~(ROTFLAGS_REGISTRATIONKEEPSALIVE|ROTFLAGS_ALLOWANYCLIENT));
return E_INVALIDARG; return E_INVALIDARG;
} }
...@@ -132,7 +132,7 @@ HRESULT __cdecl IrotRegister( ...@@ -132,7 +132,7 @@ HRESULT __cdecl IrotRegister(
!memcmp(&data->abData, &existing_rot_entry->moniker_data->abData, data->ulCntData)) !memcmp(&data->abData, &existing_rot_entry->moniker_data->abData, data->ulCntData))
{ {
hr = MK_S_MONIKERALREADYREGISTERED; hr = MK_S_MONIKERALREADYREGISTERED;
WINE_TRACE("moniker already registered with cookie %d\n", existing_rot_entry->cookie); WINE_TRACE("moniker already registered with cookie %ld\n", existing_rot_entry->cookie);
break; break;
} }
} }
...@@ -157,7 +157,7 @@ HRESULT __cdecl IrotRevoke( ...@@ -157,7 +157,7 @@ HRESULT __cdecl IrotRevoke(
{ {
struct rot_entry *rot_entry; struct rot_entry *rot_entry;
WINE_TRACE("%d\n", cookie); WINE_TRACE("%ld\n", cookie);
EnterCriticalSection(&csRunningObjectTable); EnterCriticalSection(&csRunningObjectTable);
LIST_FOR_EACH_ENTRY(rot_entry, &RunningObjectTable, struct rot_entry, entry) LIST_FOR_EACH_ENTRY(rot_entry, &RunningObjectTable, struct rot_entry, entry)
...@@ -269,7 +269,7 @@ HRESULT __cdecl IrotNoteChangeTime( ...@@ -269,7 +269,7 @@ HRESULT __cdecl IrotNoteChangeTime(
{ {
struct rot_entry *rot_entry; struct rot_entry *rot_entry;
WINE_TRACE("%d %p\n", cookie, last_modified_time); WINE_TRACE("%ld %p\n", cookie, last_modified_time);
EnterCriticalSection(&csRunningObjectTable); EnterCriticalSection(&csRunningObjectTable);
LIST_FOR_EACH_ENTRY(rot_entry, &RunningObjectTable, struct rot_entry, entry) LIST_FOR_EACH_ENTRY(rot_entry, &RunningObjectTable, struct rot_entry, entry)
......
...@@ -230,7 +230,7 @@ static DWORD WINAPI service_handler( DWORD ctrl, DWORD event_type, LPVOID event_ ...@@ -230,7 +230,7 @@ static DWORD WINAPI service_handler( DWORD ctrl, DWORD event_type, LPVOID event_
SetEvent( exit_event ); SetEvent( exit_event );
return NO_ERROR; return NO_ERROR;
default: default:
FIXME( "got service ctrl %x\n", ctrl ); FIXME( "got service ctrl %lx\n", ctrl );
status.dwCurrentState = SERVICE_RUNNING; status.dwCurrentState = SERVICE_RUNNING;
SetServiceStatus( service_handle, &status ); SetServiceStatus( service_handle, &status );
return NO_ERROR; return NO_ERROR;
...@@ -246,7 +246,7 @@ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv ) ...@@ -246,7 +246,7 @@ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
if ((ret = RPCSS_Initialize())) if ((ret = RPCSS_Initialize()))
{ {
WARN("Failed to initialize rpc interfaces, status %d.\n", ret); WARN("Failed to initialize rpc interfaces, status %ld.\n", ret);
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment