Author: akhaldi
Date: Thu Aug 29 20:37:02 2013
New Revision: 59881
URL:
http://svn.reactos.org/svn/reactos?rev=59881&view=rev
Log:
[KERNEL32]
* Fix several print specifiers.
Modified:
trunk/reactos/dll/win32/kernel32/client/console/console.c
trunk/reactos/dll/win32/kernel32/client/console/init.c
trunk/reactos/dll/win32/kernel32/client/console/readwrite.c
trunk/reactos/dll/win32/kernel32/client/dllmain.c
trunk/reactos/dll/win32/kernel32/client/file/copy.c
trunk/reactos/dll/win32/kernel32/client/file/create.c
trunk/reactos/dll/win32/kernel32/client/file/disk.c
trunk/reactos/dll/win32/kernel32/client/file/fileinfo.c
trunk/reactos/dll/win32/kernel32/client/file/find.c
trunk/reactos/dll/win32/kernel32/client/file/move.c
trunk/reactos/dll/win32/kernel32/client/file/rw.c
trunk/reactos/dll/win32/kernel32/client/file/volume.c
trunk/reactos/dll/win32/kernel32/client/loader.c
trunk/reactos/dll/win32/kernel32/client/proc.c
trunk/reactos/dll/win32/kernel32/client/thread.c
trunk/reactos/dll/win32/kernel32/client/utils.c
trunk/reactos/dll/win32/kernel32/include/baseheap.h
trunk/reactos/dll/win32/kernel32/winnls/string/lang.c
trunk/reactos/dll/win32/kernel32/winnls/string/nls.c
Modified: trunk/reactos/dll/win32/kernel32/client/console/console.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/console/console.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/console/console.c [iso-8859-1] Thu Aug 29
20:37:02 2013
@@ -351,7 +351,7 @@
DWORD nFontCount,
PCONSOLE_FONT_INFO lpConsoleFontInfo)
{
- DPRINT1("GetConsoleFontInfo(0x%x, %d, %d, 0x%x) UNIMPLEMENTED!\n",
hConsoleOutput, bMaximumWindow, nFontCount, lpConsoleFontInfo);
+ DPRINT1("GetConsoleFontInfo(0x%p, %d, %lu, 0x%p) UNIMPLEMENTED!\n",
hConsoleOutput, bMaximumWindow, nFontCount, lpConsoleFontInfo);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
@@ -366,7 +366,7 @@
DWORD nFont)
{
COORD Empty = {0, 0};
- DPRINT1("GetConsoleFontSize(0x%x, 0x%x) UNIMPLEMENTED!\n", hConsoleOutput,
nFont);
+ DPRINT1("GetConsoleFontSize(0x%p, 0x%x) UNIMPLEMENTED!\n", hConsoleOutput,
nFont);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return Empty;
}
@@ -385,7 +385,7 @@
CONSOLE_API_MESSAGE ApiMessage;
PCONSOLE_GETSETHWSTATE HardwareStateRequest =
&ApiMessage.Data.HardwareStateRequest;
- DPRINT1("GetConsoleHardwareState(%d, 0x%p) UNIMPLEMENTED!\n", Flags,
State);
+ DPRINT1("GetConsoleHardwareState(%lu, 0x%p) UNIMPLEMENTED!\n", Flags,
State);
if (State == NULL)
{
@@ -430,7 +430,7 @@
BOOL bMaximumWindow,
PCONSOLE_FONT_INFO lpConsoleCurrentFont)
{
- DPRINT1("GetCurrentConsoleFont(0x%x, 0x%x, 0x%x) UNIMPLEMENTED!\n",
hConsoleOutput, bMaximumWindow, lpConsoleCurrentFont);
+ DPRINT1("GetCurrentConsoleFont(0x%p, 0x%x, 0x%p) UNIMPLEMENTED!\n",
hConsoleOutput, bMaximumWindow, lpConsoleCurrentFont);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
@@ -613,7 +613,7 @@
SetConsoleFont(HANDLE hConsoleOutput,
DWORD nFont)
{
- DPRINT1("SetConsoleFont(0x%x, %d) UNIMPLEMENTED!\n", hConsoleOutput,
nFont);
+ DPRINT1("SetConsoleFont(0x%p, %lu) UNIMPLEMENTED!\n", hConsoleOutput,
nFont);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
@@ -632,7 +632,7 @@
CONSOLE_API_MESSAGE ApiMessage;
PCONSOLE_GETSETHWSTATE HardwareStateRequest =
&ApiMessage.Data.HardwareStateRequest;
- DPRINT1("SetConsoleHardwareState(%d, %d) UNIMPLEMENTED!\n", Flags, State);
+ DPRINT1("SetConsoleHardwareState(%lu, %lu) UNIMPLEMENTED!\n", Flags,
State);
HardwareStateRequest->OutputHandle = hConsoleOutput;
HardwareStateRequest->State = State;
@@ -677,7 +677,7 @@
SetConsoleMaximumWindowSize(HANDLE hConsoleOutput,
COORD dwMaximumSize)
{
- DPRINT1("SetConsoleMaximumWindowSize(0x%x, {%d, %d}) does nothing\n",
+ DPRINT1("SetConsoleMaximumWindowSize(0x%p, {%d, %d}) does nothing\n",
hConsoleOutput, dwMaximumSize.X, dwMaximumSize.Y);
return TRUE;
}
@@ -1268,7 +1268,7 @@
WINAPI
GetNumberOfConsoleMouseButtons(LPDWORD lpNumberOfMouseButtons)
{
- DPRINT1("GetNumberOfConsoleMouseButtons(0x%x) UNIMPLEMENTED!\n",
lpNumberOfMouseButtons);
+ DPRINT1("GetNumberOfConsoleMouseButtons(0x%p) UNIMPLEMENTED!\n",
lpNumberOfMouseButtons);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
Modified: trunk/reactos/dll/win32/kernel32/client/console/init.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/console/init.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/console/init.c [iso-8859-1] Thu Aug 29
20:37:02 2013
@@ -179,7 +179,7 @@
ULONG ConnectInfoSize = sizeof(ConnectInfo);
DPRINT("BasepInitConsole for : %wZ\n", &Parameters->ImagePathName);
- DPRINT("Our current console handles are: %lx, %lx, %lx %lx\n",
+ DPRINT("Our current console handles are: %p, %p, %p %p\n",
Parameters->ConsoleHandle, Parameters->StandardInput,
Parameters->StandardOutput, Parameters->StandardError);
@@ -240,7 +240,7 @@
{
Parameters->ConsoleHandle = NULL;
}
- DPRINT("Using existing console: %x\n",
Parameters->ConsoleHandle);
+ DPRINT("Using existing console: %p\n",
Parameters->ConsoleHandle);
}
}
@@ -309,7 +309,7 @@
InputWaitHandle = ConnectInfo.InputWaitHandle;
- DPRINT("Console setup: %lx, %lx, %lx, %lx\n",
+ DPRINT("Console setup: %p, %p, %p, %p\n",
Parameters->ConsoleHandle,
Parameters->StandardInput,
Parameters->StandardOutput,
Modified: trunk/reactos/dll/win32/kernel32/client/console/readwrite.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/console/readwrite.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/console/readwrite.c [iso-8859-1] Thu Aug 29
20:37:02 2013
@@ -275,7 +275,7 @@
}
/* Return the read region */
- DPRINT("read region: %lx\n", ReadOutputRequest->ReadRegion);
+ DPRINT("read region: %p\n", ReadOutputRequest->ReadRegion);
*lpReadRegion = ReadOutputRequest->ReadRegion;
/* Release the capture buffer */
@@ -592,7 +592,7 @@
}
/* Return the read region */
- DPRINT("read region: %lx\n", WriteOutputRequest->WriteRegion);
+ DPRINT("read region: %p\n", WriteOutputRequest->WriteRegion);
*lpWriteRegion = WriteOutputRequest->WriteRegion;
/* Release the capture buffer */
Modified: trunk/reactos/dll/win32/kernel32/client/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/dllmain.c [iso-8859-1] Thu Aug 29 20:37:02
2013
@@ -92,7 +92,7 @@
ULONG DummySize = sizeof(Dummy);
WCHAR SessionDir[256];
- DPRINT("DllMain(hInst %lx, dwReason %lu)\n",
+ DPRINT("DllMain(hInst %p, dwReason %lu)\n",
hDll, dwReason);
Basep8BitStringToUnicodeString = RtlAnsiStringToUnicodeString;
Modified: trunk/reactos/dll/win32/kernel32/client/file/copy.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/copy.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/copy.c [iso-8859-1] Thu Aug 29 20:37:02
2013
@@ -149,7 +149,7 @@
}
else
{
- TRACE("Error 0x%08x allocating buffer of %d bytes\n", errCode,
RegionSize);
+ TRACE("Error 0x%08x allocating buffer of %lu bytes\n", errCode,
RegionSize);
}
return errCode;
@@ -293,7 +293,7 @@
}
else
{
- WARN("Error %d during opening of dest file\n",
GetLastError());
+ WARN("Error %lu during opening of dest file\n",
GetLastError());
}
}
}
@@ -301,7 +301,7 @@
}
else
{
- WARN("Error %d during opening of source file\n", GetLastError());
+ WARN("Error %lu during opening of source file\n", GetLastError());
}
return RC;
Modified: trunk/reactos/dll/win32/kernel32/client/file/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/create.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/create.c [iso-8859-1] Thu Aug 29 20:37:02
2013
@@ -394,7 +394,7 @@
PWCHAR FilePart;
ULONG Len;
- TRACE("OpenFile('%s', lpReOpenBuff %x, uStyle %x)\n", lpFileName,
lpReOpenBuff, uStyle);
+ TRACE("OpenFile('%s', lpReOpenBuff %p, uStyle %x)\n", lpFileName,
lpReOpenBuff, uStyle);
if (lpReOpenBuff == NULL)
{
Modified: trunk/reactos/dll/win32/kernel32/client/file/disk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/disk.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/disk.c [iso-8859-1] Thu Aug 29 20:37:02
2013
@@ -416,7 +416,7 @@
return DRIVE_FIXED;
}
- ERR("Returning DRIVE_UNKNOWN for device type %d\n",
FileFsDevice.DeviceType);
+ ERR("Returning DRIVE_UNKNOWN for device type %lu\n",
FileFsDevice.DeviceType);
return DRIVE_UNKNOWN;
}
Modified: trunk/reactos/dll/win32/kernel32/client/file/fileinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/fileinfo.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/fileinfo.c [iso-8859-1] Thu Aug 29
20:37:02 2013
@@ -210,7 +210,7 @@
IO_STATUS_BLOCK IoStatusBlock;
LARGE_INTEGER Distance;
- TRACE("SetFilePointer(hFile %x, lDistanceToMove %d, dwMoveMethod %d)\n",
+ TRACE("SetFilePointer(hFile %p, lDistanceToMove %d, dwMoveMethod %lu)\n",
hFile,lDistanceToMove,dwMoveMethod);
if(IsConsoleHandle(hFile))
Modified: trunk/reactos/dll/win32/kernel32/client/file/find.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/find.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/find.c [iso-8859-1] Thu Aug 29 20:37:02
2013
@@ -383,7 +383,7 @@
NTSTATUS Status = STATUS_SUCCESS;
DIR_INFORMATION FoundFile = {NULL};
- TRACE("FindNextFileW(%lx, 0x%p)\n", hFindFile, lpFindFileData);
+ TRACE("FindNextFileW(%p, 0x%p)\n", hFindFile, lpFindFileData);
if (hFindFile != FIND_DEVICE_HANDLE)
{
@@ -499,7 +499,7 @@
WINAPI
FindClose(HANDLE hFindFile)
{
- TRACE("FindClose(hFindFile %x)\n", hFindFile);
+ TRACE("FindClose(hFindFile %p)\n", hFindFile);
if (hFindFile == FIND_DEVICE_HANDLE)
return TRUE;
Modified: trunk/reactos/dll/win32/kernel32/client/file/move.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/move.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/move.c [iso-8859-1] Thu Aug 29 20:37:02
2013
@@ -91,7 +91,7 @@
WCHAR *p;
NTSTATUS Status;
- TRACE("add_boot_rename_entry( %S, %S, %d ) \n", source, dest, flags);
+ TRACE("add_boot_rename_entry( %S, %S, %lu ) \n", source, dest, flags);
if(dest)
DestLen = wcslen(dest);
@@ -990,7 +990,7 @@
/* If there was an error, set the error code */
if(!Ret)
{
- TRACE("ReplaceFileW failed (error=%d)\n", Error);
+ TRACE("ReplaceFileW failed (error=%lu)\n", Error);
SetLastError(Error);
}
return Ret;
Modified: trunk/reactos/dll/win32/kernel32/client/file/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/rw.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/rw.c [iso-8859-1] Thu Aug 29 20:37:02
2013
@@ -29,7 +29,7 @@
{
NTSTATUS Status;
- TRACE("WriteFile(hFile %x)\n", hFile);
+ TRACE("WriteFile(hFile %p)\n", hFile);
if (lpNumberOfBytesWritten != NULL) *lpNumberOfBytesWritten = 0;
@@ -128,7 +128,7 @@
{
NTSTATUS Status;
- TRACE("ReadFile(hFile %x)\n", hFile);
+ TRACE("ReadFile(hFile %p)\n", hFile);
if (lpNumberOfBytesRead != NULL) *lpNumberOfBytesRead = 0;
if (!nNumberOfBytesToRead) return TRUE;
Modified: trunk/reactos/dll/win32/kernel32/client/file/volume.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/volume.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/volume.c [iso-8859-1] Thu Aug 29 20:37:02
2013
@@ -253,7 +253,7 @@
return FALSE;
}
- TRACE("hFile: %x\n", hFile);
+ TRACE("hFile: %p\n", hFile);
errCode = NtQueryVolumeInformationFile(hFile,
&IoStatusBlock,
FileFsVolume,
Modified: trunk/reactos/dll/win32/kernel32/client/loader.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/loader.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/loader.c [iso-8859-1] Thu Aug 29 20:37:02
2013
@@ -1123,7 +1123,7 @@
IN PVOID Unknown3,
IN PVOID Unknown4)
{
- DPRINT1("BaseQueryModuleData called: %s %s %x %x %x\n",
+ DPRINT1("BaseQueryModuleData called: %s %s %p %p %p\n",
ModuleName,
Unknown,
Unknown2,
Modified: trunk/reactos/dll/win32/kernel32/client/proc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/proc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/proc.c [iso-8859-1] Thu Aug 29 20:37:02 2013
@@ -503,7 +503,7 @@
BASE_API_MESSAGE ApiMessage;
PBASE_CREATE_THREAD CreateThreadRequest = &ApiMessage.Data.CreateThreadRequest;
- DPRINT("BasepNotifyCsrOfThread: Thread: %lx, Handle %lx\n",
+ DPRINT("BasepNotifyCsrOfThread: Thread: %p, Handle %p\n",
ClientId->UniqueThread, ThreadHandle);
/* Fill out the request */
@@ -2891,7 +2891,7 @@
}
/* Now use the path name, and the root path, to try opening the app */
- DPRINT1("Path: %wZ. Dir: %lx\n", &PathName,
SxsWin32RelativePath.ContainingDirectory);
+ DPRINT1("Path: %wZ. Dir: %p\n", &PathName,
SxsWin32RelativePath.ContainingDirectory);
InitializeObjectAttributes(&LocalObjectAttributes,
&PathName,
OBJ_CASE_INSENSITIVE,
@@ -3722,7 +3722,7 @@
if (!Result)
{
/* It was not, bail out */
- DPRINT1("Invalid subsystem version: %d.%d\n",
+ DPRINT1("Invalid subsystem version: %hu.%hu\n",
ImageInformation.SubSystemMajorVersion,
ImageInformation.SubSystemMinorVersion);
SetLastError(ERROR_BAD_EXE_FORMAT);
@@ -4657,8 +4657,8 @@
BOOL bRetVal;
STARTUPINFOW StartupInfo;
- DPRINT("dwCreationFlags %x, lpEnvironment %x, lpCurrentDirectory %x, "
- "lpStartupInfo %x, lpProcessInformation %x\n",
+ DPRINT("dwCreationFlags %x, lpEnvironment %p, lpCurrentDirectory %p, "
+ "lpStartupInfo %p, lpProcessInformation %p\n",
dwCreationFlags, lpEnvironment, lpCurrentDirectory,
lpStartupInfo, lpProcessInformation);
Modified: trunk/reactos/dll/win32/kernel32/client/thread.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/thread.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/thread.c [iso-8859-1] Thu Aug 29 20:37:02
2013
@@ -175,8 +175,8 @@
ACTIVATION_CONTEXT_BASIC_INFORMATION ActCtxInfo;
ULONG_PTR Cookie;
ULONG ReturnLength;
- DPRINT("CreateRemoteThread: hProcess: %ld dwStackSize: %ld lpStartAddress"
- ": %p lpParameter: %lx, dwCreationFlags: %lx\n", hProcess,
+ DPRINT("CreateRemoteThread: hProcess: %p dwStackSize: %lu lpStartAddress"
+ ": %p lpParameter: %p, dwCreationFlags: %lx\n", hProcess,
dwStackSize, lpStartAddress, lpParameter, dwCreationFlags);
/* Clear the Context */
Modified: trunk/reactos/dll/win32/kernel32/client/utils.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/utils.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/utils.c [iso-8859-1] Thu Aug 29 20:37:02 2013
@@ -340,7 +340,7 @@
Attributes,
RootDirectory,
SecurityDescriptor);
- DPRINT("Attributes: %lx, RootDirectory: %lx, SecurityDescriptor: %p\n",
+ DPRINT("Attributes: %lx, RootDirectory: %p, SecurityDescriptor: %p\n",
Attributes, RootDirectory, SecurityDescriptor);
return ObjectAttributes;
}
@@ -361,7 +361,7 @@
BOOLEAN UseGuard;
ULONG PageSize, Dummy, AllocationGranularity;
SIZE_T StackReserveHeader, StackCommitHeader, GuardPageSize, GuaranteedStackCommit;
- DPRINT("BaseCreateStack (hProcess: %lx, Max: %lx, Current: %lx)\n",
+ DPRINT("BaseCreateStack (hProcess: %p, Max: %lx, Current: %lx)\n",
hProcess, StackReserve, StackCommit);
/* Read page size */
@@ -709,7 +709,7 @@
NtClose(hFile);
/* Return status */
- DPRINT("Section: %lx for file: %lx\n", *hSection, hFile);
+ DPRINT("Section: %p for file: %p\n", *hSection, hFile);
return Status;
}
Modified: trunk/reactos/dll/win32/kernel32/include/baseheap.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/include…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/include/baseheap.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/include/baseheap.h [iso-8859-1] Thu Aug 29 20:37:02
2013
@@ -48,7 +48,7 @@
BH_PRINT("[BASE_HEAP] %s : Allocated %p\n", \
__FUNCTION__, x)
#define BASE_TRACE_PTR(x, y) \
- BH_PRINT("[BASE_HEAP] %s : Using handle: %lx for pointer: %p\n", \
+ BH_PRINT("[BASE_HEAP] %s : Using handle: %p for pointer: %p\n", \
__FUNCTION__, x, y)
#define BASE_TRACE_HANDLE(x, y) \
BH_PRINT("[BASE_HEAP] %s : Using handle: %lx for block: %p\n", \
Modified: trunk/reactos/dll/win32/kernel32/winnls/string/lang.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/winnls/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/winnls/string/lang.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/winnls/string/lang.c [iso-8859-1] Thu Aug 29 20:37:02
2013
@@ -2702,7 +2702,7 @@
NTSTATUS Status;
int Ret;
- swprintf(szPath,
L"\\REGISTRY\\Machine\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Telephony\\Country
List\\%d", Location);
+ swprintf(szPath,
L"\\REGISTRY\\Machine\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Telephony\\Country
List\\%lu", Location);
hKey = NLS_RegOpenKey(0, szPath);
if (!hKey)
Modified: trunk/reactos/dll/win32/kernel32/winnls/string/nls.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/winnls/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/winnls/string/nls.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/winnls/string/nls.c [iso-8859-1] Thu Aug 29 20:37:02
2013
@@ -1713,7 +1713,7 @@
}
}
- DPRINT1("Could not get codepage name. dwResId = %ld\n", dwResId);
+ DPRINT1("Could not get codepage name. dwResId = %lu\n", dwResId);
return FALSE;
}