Skip to content

Commit 4534537

Browse files
committed
[WIN32SS:USER] Remove useless assignations of pdo variable
Addendum to 30a7d19
1 parent 9853f1d commit 4534537

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

win32ss/user/ntuser/display.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -245,20 +245,14 @@ UserEnumDisplayDevices(
245245
return STATUS_UNSUCCESSFUL;
246246
}
247247

248-
if (!pustrDevice)
249-
{
250-
ASSERT(pGraphicsDevice->PhysDeviceHandle);
251-
pdo = pGraphicsDevice->PhysDeviceHandle;
252-
}
253-
else
248+
if (pustrDevice)
254249
{
255250
EngpUpdateMonitorDevices(pGraphicsDevice);
256251
if (iDevNum >= pGraphicsDevice->dwMonCnt)
257252
{
258253
TRACE("No monitor #%u for '%wZ'\n", iDevNum + 1, pustrDevice);
259254
return STATUS_UNSUCCESSFUL;
260255
}
261-
pdo = pGraphicsDevice->pvMonDev[iDevNum].pdo;
262256
}
263257

264258

0 commit comments

Comments
 (0)