From 398e5555d96448c49fb0381d0df4a5cee25de741 Mon Sep 17 00:00:00 2001 From: Bryce Seager van Dyk Date: Tue, 29 Oct 2019 19:31:19 +0000 Subject: [PATCH] Bug 1592371 - QueryDosDeviceWHook returns size of lpTargetPath copy on success. r=bobowen Prior to the patch we appear to be returning the size of lpDeviceName rather than lpTargetPath. Differential Revision: https://phabricator.services.mozilla.com/D50979 --HG-- extra : moz-landing-system : lando --- dom/media/gmp/ChromiumCDMAdapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/media/gmp/ChromiumCDMAdapter.cpp b/dom/media/gmp/ChromiumCDMAdapter.cpp index d5f34c7f8c18..c54f2832cff8 100644 --- a/dom/media/gmp/ChromiumCDMAdapter.cpp +++ b/dom/media/gmp/ChromiumCDMAdapter.cpp @@ -186,7 +186,7 @@ DWORD WINAPI QueryDosDeviceWHook(LPCWSTR lpDeviceName, LPWSTR lpTargetPath, PodCopy(lpTargetPath, device.c_str(), device.size()); lpTargetPath[device.size()] = 0; GMP_LOG_DEBUG("QueryDosDeviceWHook %S -> %S", lpDeviceName, lpTargetPath); - return name.size(); + return device.size(); } static std::vector GetDosDeviceNames() {