Driver: Use assert(), not NT_ASSERT()

This commit is contained in:
Nodir Temirkhodjaev 2023-04-29 14:39:11 +03:00
parent aafba35944
commit af85039a83
3 changed files with 3 additions and 3 deletions

View File

@ -173,7 +173,7 @@ inline static void fort_packet_fill_in_interface_indexes(
*subInterfaceField = FWPS_FIELD_INBOUND_TRANSPORT_V6_SUB_INTERFACE_INDEX; *subInterfaceField = FWPS_FIELD_INBOUND_TRANSPORT_V6_SUB_INTERFACE_INDEX;
break; break;
default: default:
NT_ASSERT(0); assert(0);
} }
} }

View File

@ -307,7 +307,7 @@ static PFORT_PSNAME fort_pstree_add_service_name(PFORT_PSTREE ps_tree, PCFORT_PS
static void fort_pstree_proc_set_name(PFORT_PSNODE proc, PFORT_PSNAME ps_name) static void fort_pstree_proc_set_name(PFORT_PSNODE proc, PFORT_PSNAME ps_name)
{ {
NT_ASSERT(proc->ps_name == NULL); assert(proc->ps_name == NULL);
proc->ps_name = ps_name; proc->ps_name = ps_name;

View File

@ -58,7 +58,7 @@ static void fort_worker_wait(PFORT_WORKER worker)
FORT_API void fort_worker_func_set(PFORT_WORKER worker, UCHAR work_id, FORT_WORKER_FUNC worker_func) FORT_API void fort_worker_func_set(PFORT_WORKER worker, UCHAR work_id, FORT_WORKER_FUNC worker_func)
{ {
NT_ASSERT(work_id >= 0 && work_id < FORT_WORKER_FUNC_COUNT); assert(work_id >= 0 && work_id < FORT_WORKER_FUNC_COUNT);
worker->funcs[work_id] = worker_func; worker->funcs[work_id] = worker_func;
} }