mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[SETUPAPI] CM_Request_Device_Eject_ExW: Allow ulNameLength to be zero when pszVetoName is not NULL (#6031)
Addendum to 7f346b1aa (#5943)
This commit is contained in:
committed by
GitHub
parent
c77a5ff99b
commit
40bc5bf489
@@ -7550,6 +7550,11 @@ CM_Request_Device_Eject_ExW(
|
||||
if (pszVetoName == NULL && ulNameLength != 0)
|
||||
return CR_INVALID_POINTER;
|
||||
|
||||
/* Windows 2003 SP2 ignores pszVetoName when ulNameLength is zero
|
||||
* and behaves like when pszVetoName is NULL */
|
||||
if (ulNameLength == 0)
|
||||
pszVetoName = NULL;
|
||||
|
||||
if (hMachine != NULL)
|
||||
{
|
||||
BindingHandle = ((PMACHINE_INFO)hMachine)->BindingHandle;
|
||||
|
||||
Reference in New Issue
Block a user