/* Fixup default coordinates. */
sw = SW_SHOW;
- if (x == CW_USEDEFAULT || nWidth == CW_USEDEFAULT)
+ if (x == (LONG) CW_USEDEFAULT || nWidth == (LONG) CW_USEDEFAULT)
{
if (dwStyle & (WS_CHILD | WS_POPUP))
{
- if (x == CW_USEDEFAULT)
+ if (x == (LONG) CW_USEDEFAULT)
{
x = y = 0;
}
- if (nWidth == CW_USEDEFAULT)
+ if (nWidth == (LONG) CW_USEDEFAULT)
{
nWidth = nHeight = 0;
}
GetStartupInfoA(&info);
- if (x == CW_USEDEFAULT)
+ if (x == (LONG) CW_USEDEFAULT)
{
- if (y != CW_USEDEFAULT)
+ if (y != (LONG) CW_USEDEFAULT)
{
sw = y;
}
y = (info.dwFlags & STARTF_USEPOSITION) ? info.dwY : 0;
}
- if (nWidth == CW_USEDEFAULT)
+ if (nWidth == (LONG) CW_USEDEFAULT)
{
if (info.dwFlags & STARTF_USESIZE)
{
/* Fixup default coordinates. */
sw = SW_SHOW;
- if (x == CW_USEDEFAULT || nWidth == CW_USEDEFAULT)
+ if (x == (LONG) CW_USEDEFAULT || nWidth == (LONG) CW_USEDEFAULT)
{
if (dwStyle & (WS_CHILD | WS_POPUP))
{
- if (x == CW_USEDEFAULT)
+ if (x == (LONG) CW_USEDEFAULT)
{
x = y = 0;
}
- if (nWidth == CW_USEDEFAULT)
+ if (nWidth == (LONG) CW_USEDEFAULT)
{
nWidth = nHeight = 0;
}
GetStartupInfoW(&info);
- if (x == CW_USEDEFAULT)
+ if (x == (LONG) CW_USEDEFAULT)
{
- if (y != CW_USEDEFAULT)
+ if (y != (LONG) CW_USEDEFAULT)
{
sw = y;
}
y = (info.dwFlags & STARTF_USEPOSITION) ? info.dwY : 0;
}
- if (nWidth == CW_USEDEFAULT)
+ if (nWidth == (LONG) CW_USEDEFAULT)
{
if (info.dwFlags & STARTF_USESIZE)
{