https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e69d2e8b89f34ddb99442…
commit e69d2e8b89f34ddb99442f36a75c5e3d61f34629
Author: Joachim Henze <joachim.henze(a)reactos.org>
AuthorDate: Wed Sep 27 19:34:32 2023 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Wed Sep 27 17:34:32 2023 +0000
[CMICONTROL] Fix MSVC 14.2 dbg x64 warning C4267 (#5696)
Can be observed on the buildbots:
2023-09-17T14:19:34.2051345Z [10663/14808] Building CXX object
drivers\wdm\audio\drivers\CMIDriver\cmicontrol\CMakeFiles\cmicontrol.dir\main.cpp.obj
2023-09-17T14:19:34.2052611Z
D:\a\reactos\reactos\src\drivers\wdm\audio\drivers\CMIDriver\cmicontrol\main.cpp(818):
warning C4267: '=': conversion from 'size_t' to 'unsigned int',
possible loss of data
---
drivers/wdm/audio/drivers/CMIDriver/cmicontrol/main.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/wdm/audio/drivers/CMIDriver/cmicontrol/main.cpp
b/drivers/wdm/audio/drivers/CMIDriver/cmicontrol/main.cpp
index e5711703966..7317b363456 100644
--- a/drivers/wdm/audio/drivers/CMIDriver/cmicontrol/main.cpp
+++ b/drivers/wdm/audio/drivers/CMIDriver/cmicontrol/main.cpp
@@ -799,7 +799,7 @@ void printUsage()
void deleteDriverFiles() {
TCHAR SysDir[MAX_PATH];
- unsigned int len;
+ size_t len;
if (GetSystemDirectory(SysDir, sizeof(SysDir))==0) {
PrintLastError("GetSystemDirectory()");
return;