Skip to content

Commit 6dd8e04

Browse files
authored
[KBSWITCH] Delete vDbgPrintExWithPrefix and link ntdll (reactos#8050)
Reverts 57981ed and later changes. JIRA issue: N/A
1 parent e43e639 commit 6dd8e04

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

base/applications/kbswitch/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ add_rc_deps(kbswitch.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/kbswitch.ico)
33
add_executable(kbswitch kbswitch.c kbswitch.rc)
44
set_module_type(kbswitch win32gui UNICODE)
55
target_link_libraries(kbswitch wine)
6-
add_importlibs(kbswitch advapi32 imm32 user32 shell32 shlwapi gdi32 msvcrt kernel32)
6+
add_importlibs(kbswitch advapi32 imm32 user32 shell32 shlwapi gdi32 msvcrt kernel32 ntdll)
77
add_cd_file(TARGET kbswitch DESTINATION reactos/system32 FOR all)
88

99
add_subdirectory(kbsdll)

base/applications/kbswitch/kbswitch.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,6 @@ HMENU g_hPopupMenu = NULL;
4747
UINT g_uTaskbarRestartMsg = 0;
4848
UINT g_uShellHookMessage = 0;
4949

50-
/* Debug logging */
51-
ULONG NTAPI
52-
vDbgPrintExWithPrefix(IN PCCH Prefix,
53-
IN ULONG ComponentId,
54-
IN ULONG Level,
55-
IN PCCH Format,
56-
IN va_list ap)
57-
{
58-
CHAR Buffer[512];
59-
SIZE_T PrefixLength = strlen(Prefix);
60-
strncpy(Buffer, Prefix, PrefixLength);
61-
_vsnprintf(Buffer + PrefixLength, _countof(Buffer) - PrefixLength, Format, ap);
62-
Buffer[_countof(Buffer) - 1] = ANSI_NULL; /* Avoid buffer overrun */
63-
OutputDebugStringA(Buffer);
64-
return 0;
65-
}
66-
6750
typedef struct tagSPECIAL_ID
6851
{
6952
DWORD dwLayoutId;

0 commit comments

Comments
 (0)