mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 17:56:06 +00:00
[SETUPLIB][USETUP] Add support for setup error handling.
This commit is contained in:
parent
64e217e97c
commit
f894631472
3 changed files with 35 additions and 0 deletions
|
@ -675,6 +675,10 @@ InitializeSetup(
|
|||
// pSetupData->LayoutList = NULL;
|
||||
// pSetupData->LanguageList = NULL;
|
||||
|
||||
/* Initialize error handling */
|
||||
pSetupData->LastErrorNumber = ERROR_SUCCESS;
|
||||
pSetupData->ErrorRoutine = NULL;
|
||||
|
||||
/* Initialize global unicode strings */
|
||||
RtlInitUnicodeString(&pSetupData->SourcePath, NULL);
|
||||
RtlInitUnicodeString(&pSetupData->SourceRootPath, NULL);
|
||||
|
|
|
@ -58,8 +58,15 @@ extern HANDLE ProcessHeap;
|
|||
|
||||
struct _USETUP_DATA;
|
||||
|
||||
typedef VOID
|
||||
(__cdecl *PSETUP_ERROR_ROUTINE)(IN struct _USETUP_DATA*, ...);
|
||||
|
||||
typedef struct _USETUP_DATA
|
||||
{
|
||||
/* Error handling *****/
|
||||
ERROR_NUMBER LastErrorNumber;
|
||||
PSETUP_ERROR_ROUTINE ErrorRoutine;
|
||||
|
||||
/* Setup INFs *****/
|
||||
HINF SetupInf;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue