Author: hbelusca
Date: Sun Aug 24 17:16:50 2014
New Revision: 63943
URL:
http://svn.reactos.org/svn/reactos?rev=63943&view=rev
Log:
[DESK]: Fix *printf format specifier.
Adapted from a patch by Victor Martinez Calvo.
CORE-8150 #resolve #comment Fixed, thanks!
Modified:
trunk/reactos/dll/cpl/desk/screensaver.c
Modified: trunk/reactos/dll/cpl/desk/screensaver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/screensaver.c…
==============================================================================
--- trunk/reactos/dll/cpl/desk/screensaver.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/screensaver.c [iso-8859-1] Sun Aug 24 17:16:50 2014
@@ -123,9 +123,9 @@
if (pData->Selection > 0)
{
_stprintf(szCmdline,
- _T("%s /p %u"),
+ _T("%s /p %lu"),
pData->ScreenSaverItems[pData->Selection].szFilename,
- hPreview);
+ (ULONG_PTR)hPreview);
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
@@ -188,8 +188,8 @@
ScreensaverConfig(HWND hwndDlg, PDATA pData)
{
/*
- /c:<hwnd> Run configuration, hwnd is handle of calling window
- */
+ * /c:<hwnd> Run configuration, hwnd is handle of calling window
+ */
TCHAR szCmdline[2048];
STARTUPINFO si;
@@ -199,9 +199,9 @@
return;
_stprintf(szCmdline,
- _T("%s /c:%u"),
+ _T("%s /c:%lu"),
pData->ScreenSaverItems[pData->Selection].szFilename,
- hwndDlg);
+ (ULONG_PTR)hwndDlg);
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);