mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00: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:
parent
c77a5ff99b
commit
40bc5bf489
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue