mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
Convert result struct only if NtUserEnumDisplaySettings returned success
svn path=/trunk/; revision=22207
This commit is contained in:
parent
c373b8ba66
commit
b5d6466d79
1 changed files with 2 additions and 0 deletions
|
@ -218,6 +218,8 @@ EnumDisplaySettingsExA(
|
|||
|
||||
rc = NtUserEnumDisplaySettings ( &DeviceName, iModeNum, &lpDevModeW,
|
||||
dwFlags );
|
||||
if (!rc)
|
||||
goto done;
|
||||
|
||||
#define COPYS(f,len) WideCharToMultiByte( CP_THREAD_ACP, 0, lpDevModeW.f, len, (LPSTR)lpDevMode->f, len, NULL, NULL )
|
||||
#define COPYN(f) lpDevMode->f = lpDevModeW.f
|
||||
|
|
Loading…
Reference in a new issue