13 Commits
Author SHA1 Message Date
Alex Mendoza 8dc41c663d [NTOS:OB] Correct a typo 2026-07-30 20:22:03 +02:00
Alex Mendoza 7658029392 [VBEMP] Return NO_ERROR in VBESetPowerState (#9350)
Fix incorrect status code returned by VBESetPowerState()
in the VBE miniport driver.

- VBESetPowerState() returned `VBE_SUCCESS` (`0x4F`, raw VESA BIOS AL
  success code) instead of `NO_ERROR` on success, so callers checking for
  `NO_ERROR` would treat every successful DPMS power-state change
  as a failure. Change it to `NO_ERROR`.
- Change annotations to SAL2 in the source and header.
2026-07-28 22:52:45 +03:00
Alex Mendoza ae50d745ca [USBHUB] USBH_FdoQueryBusRelations: Fix an off by one (#9298)
Fix an out of bounds heap read when compacting the ghost device list.

Change the loop condition from `GhostPort < DeviceRelations->Count` to
`GhostPort < DeviceRelations->Count - 1` so the array shift never reads
past the last valid entry.
2026-07-17 22:48:18 +03:00
Alex Mendoza 02f2314139 [SHELL32] Implement LockServer (#9055) 2026-06-27 16:36:29 +02:00
Alex Mendoza 8e865cb39d [NTOS:OB] Return handle attributes by ObReferenceFileObjectForWrite (#9213)
Resolve a FIXME in ObReferenceFileObjectForWrite by getting the handle attributes,
the same way it's done in other parts of the Ob code.
2026-06-26 19:22:55 +02:00
Alex Mendoza f800886dc0 [WDMAUD] WdmAudGetDeviceInterface(): fix memory leak and protect the buffer (#9012)
- Fix memory leak in WdmAudGetDeviceInterface() (FreeItem(Device) was not called on STATUS_BUFFER_OVERFLOW early return path).
- Wrap user-mode buffer write in ProbeForWrite() + SEH2().
2026-05-26 19:35:16 +02:00
Alex Mendoza 7cba1c80a7 [SHELL32]: Fix E_OUTOFMEMORY not being returned on allocation failure in ASSOCSTR_DEFAULTICON (#8866)
Fix `ASSOCSTR_DEFAULTICON` in `CQueryAssociations::GetString` incorrectly returning **S_OK** instead of **E_OUTOFMEMORY** when HeapAlloc fails.
2026-05-10 00:50:46 +02:00
Alex Mendoza d8f0c3bef2 [PSDK] Add missing values to _APTTYPEQUALIFIER (#8873)
Add missing `APTTYPEQUALIFIER_APPLICATION_STA` (enum 6) and `APTTYPEQUALIFIER_RESERVED_1` (enum 7) to `_APTTYPEQUALIFIER`.

Documented at:
https://learn.microsoft.com/en-us/windows/win32/api/objidl/ne-objidl-apttypequalifier
2026-05-10 00:48:42 +02:00
Alex Mendoza fd683dbba4 [SHELL32] AddCommasW: Use LOCALE_SGROUPING instead of harcoded grouping (#8814) 2026-04-01 14:27:17 +02:00
Alex Mendoza 2c57d695da [NETSHELL] Fix buffer size parameter (#8802)
Change szFormat to szBuffer in StrFormatByteSizeW calls.
Using szFormat is incorrect and could cause buffer overflow if buffer sizes differ.
2026-03-29 21:35:48 +02:00
Alex Mendoza d5697b231c [IMM32] Ensure minimum size in Imm32CreateInputContext (#8791)
Ensure minimum size of hPrivate
in Imm32CreateInputContext, just
like Imm32SelectInputContext does
2026-03-28 19:41:40 +09:00
Alex Mendoza f76ed0625b [IMM32] ImmEnumInputContext: Add IS_IMM_MODE check (#8768) 2026-03-25 16:51:13 +09:00
Alex Mendoza 2be203234c [PSDK] Add missing DPI_HOSTING_BEHAVIOR enumeration (#8540)
Add some missing high-DPI macros into windef.h
2026-01-08 12:20:58 +03:00