mirror of https://github.com/FreeRDP/FreeRDP
Merge pull request #6047 from akallabeth/subsystem_entry_fix
Subsystem entry fix
This commit is contained in:
commit
03fa903116
|
@ -97,7 +97,7 @@ foreach(STATIC_MODULE ${CHANNEL_STATIC_CLIENT_MODULES})
|
|||
set(STATIC_SUBSYSTEM_ENTRY "${STATIC_SUBSYSTEM_NAME}_freerdp_${STATIC_MODULE_CHANNEL}_client_subsystem_entry")
|
||||
endif()
|
||||
set(SUBSYSTEM_TABLE "${SUBSYSTEM_TABLE}\n\t{ \"${STATIC_SUBSYSTEM_NAME}\", \"${STATIC_SUBSYSTEM_TYPE}\", ${STATIC_SUBSYSTEM_ENTRY} },")
|
||||
set(SUBSYSTEM_IMPORT "extern void ${STATIC_SUBSYSTEM_ENTRY}(void);")
|
||||
set(SUBSYSTEM_IMPORT "extern UINT ${STATIC_SUBSYSTEM_ENTRY}(void*);")
|
||||
set(CLIENT_STATIC_SUBSYSTEM_IMPORTS "${CLIENT_STATIC_SUBSYSTEM_IMPORTS}\n${SUBSYSTEM_IMPORT}")
|
||||
endforeach()
|
||||
set(SUBSYSTEM_TABLE "${SUBSYSTEM_TABLE}\n\t{ NULL, NULL, NULL }\n};")
|
||||
|
|
|
@ -37,7 +37,7 @@ struct _STATIC_SUBSYSTEM_ENTRY
|
|||
{
|
||||
const char* name;
|
||||
const char* type;
|
||||
void (*entry)(void);
|
||||
UINT (*entry)();
|
||||
};
|
||||
typedef struct _STATIC_SUBSYSTEM_ENTRY STATIC_SUBSYSTEM_ENTRY;
|
||||
|
||||
|
|
|
@ -861,9 +861,9 @@ static DWORD poll_thread(LPVOID lpThreadParameter)
|
|||
#else
|
||||
#define freerdp_urbdrc_client_subsystem_entry FREERDP_API freerdp_urbdrc_client_subsystem_entry
|
||||
#endif
|
||||
int freerdp_urbdrc_client_subsystem_entry(PFREERDP_URBDRC_SERVICE_ENTRY_POINTS pEntryPoints)
|
||||
UINT freerdp_urbdrc_client_subsystem_entry(PFREERDP_URBDRC_SERVICE_ENTRY_POINTS pEntryPoints)
|
||||
{
|
||||
int rc;
|
||||
UINT rc;
|
||||
UINT status;
|
||||
UDEVMAN* udevman;
|
||||
ADDIN_ARGV* args = pEntryPoints->args;
|
||||
|
@ -922,5 +922,5 @@ int freerdp_urbdrc_client_subsystem_entry(PFREERDP_URBDRC_SERVICE_ENTRY_POINTS p
|
|||
return 0;
|
||||
fail:
|
||||
udevman_free(&udevman->iface);
|
||||
return -1;
|
||||
return ERROR_INTERNAL_ERROR;
|
||||
}
|
||||
|
|
|
@ -222,14 +222,12 @@ struct _IUDEVMAN
|
|||
UINT32 status;
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
DEVICE_ADD_FLAG_BUS,
|
||||
DEVICE_ADD_FLAG_DEV,
|
||||
DEVICE_ADD_FLAG_VENDOR,
|
||||
DEVICE_ADD_FLAG_PRODUCT,
|
||||
DEVICE_ADD_FLAG_REGISTER
|
||||
} device_add_flag_t;
|
||||
#define DEVICE_ADD_FLAG_BUS 0x01
|
||||
#define DEVICE_ADD_FLAG_DEV 0x02
|
||||
#define DEVICE_ADD_FLAG_VENDOR 0x04
|
||||
#define DEVICE_ADD_FLAG_PRODUCT 0x08
|
||||
#define DEVICE_ADD_FLAG_REGISTER 0x10
|
||||
|
||||
#define DEVICE_ADD_FLAG_ALL \
|
||||
(DEVICE_ADD_FLAG_BUS | DEVICE_ADD_FLAG_DEV | DEVICE_ADD_FLAG_VENDOR | \
|
||||
DEVICE_ADD_FLAG_PRODUCT | DEVICE_ADD_FLAG_REGISTER)
|
||||
|
|
Loading…
Reference in New Issue