FIX: The VarUI4FromI4 function returns an incorrect value if a negative value is passed to the "lIn" parameter of the function in Windows Embedded CE 6.0 R3

Symptoms

Consider the following scenario:

  • You run an application on a Windows Embedded CE 6.0 R3-based device.

  • The application calls the VarUI4FromI4 function to convert variant data types from the LONG data type to the unsigned long (ULONG) data type.

  • The application passes a negative value to the lIn parameter of the function.

In this scenario, the VarUI4FromI4 function returns the S_OK code instead of the DISP_E_OVERFLOW code.

Cause

This issue occurs because the implementation of the VarUI4FromI4 function does not check the input parameter for negative values.

Resolution

Software update information

A supported software update is now available from Microsoft as Windows Embedded CE 6.0 Monthly Update (April 2012). In the "File information" section, the package file name contains the product version, date, Microsoft Knowledge Base article number, and processor type. The package file name format is as follows:

Product version-yymmdd-kbnnnnnn-processor type

For example: Wincepb60-110128-kb2492159-armv4i.msi is the ARMV4i Windows Embedded CE 6.0 Platform Builder fix that is documented in Knowledge Base article 2492159 and that is contained in the January 2011 monthly update.

To resolve this problem immediately, download this Windows Embedded CE 6.0 monthly update from the following Microsoft websites:

Windows Embedded

Download Windows Embedded CE 6.0

Microsoft Download Center

Windows Embedded CE 6.0

Prerequisites

This update is supported only if all previously issued updates for this product have also been installed.

Restart requirement

After you apply this update, you must perform a clean build of the whole platform. To do this, use one of the following methods:

  • On the Build menu, click Clean Solution, and then click Build Solution.

  • On the Build menu, click Rebuild Solution.

You do not have to restart the computer after you apply this software update.

Update replacement information

This update does not replace any other updates.

File information

The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Installer files



File name

File size

Date

Time

Wincepb60-120411-kb2690112-mipsiv.msi

1,556,480

11-Apr-2012

17:26

Wincepb60-120411-kb2690112-mipsiv_fp.msi

1,552,384

11-Apr-2012

17:26

Wincepb60-120411-kb2690112-sh4.msi

1,527,808

11-Apr-2012

17:26

Wincepb60-120411-kb2690112-x86.msi

1,433,600

11-Apr-2012

17:26

Wincepb60-120411-kb2690112-armv4i.msi

1,622,016

11-Apr-2012

17:26

Wincepb60-120411-kb2690112-mipsii.msi

1,544,192

11-Apr-2012

17:26

Wincepb60-120411-kb2690112-mipsii_fp.msi

1,544,192

11-Apr-2012

17:26

Files that are included in this update package



File name

File size

Date

Time

Path

Oleaut32.lib

1,504,968

03-Apr-2012

00:46

Public\Dcom\Oak\Lib\Armv4i\Debug

Oleaut32.lib

1,379,952

03-Apr-2012

00:46

Public\Dcom\Oak\Lib\Armv4i\Retail

Oleaut32.lib

1,386,194

03-Apr-2012

00:47

Public\Dcom\Oak\Lib\Mipsii\Debug

Oleaut32.lib

1,248,114

03-Apr-2012

00:46

Public\Dcom\Oak\Lib\Mipsii\Retail

Oleaut32.lib

1,389,480

03-Apr-2012

00:47

Public\Dcom\Oak\Lib\Mipsii_fp\Debug

Oleaut32.lib

1,241,700

03-Apr-2012

00:47

Public\Dcom\Oak\Lib\Mipsii_fp\Retail

Oleaut32.lib

1,414,536

03-Apr-2012

00:47

Public\Dcom\Oak\Lib\Mipsiv\Debug

Oleaut32.lib

1,270,712

03-Apr-2012

00:47

Public\Dcom\Oak\Lib\Mipsiv\Retail

Oleaut32.lib

1,408,732

03-Apr-2012

00:48

Public\Dcom\Oak\Lib\Mipsiv_fp\Debug

Oleaut32.lib

1,255,694

03-Apr-2012

00:47

Public\Dcom\Oak\Lib\Mipsiv_fp\Retail

Oleaut32.lib

1,231,180

03-Apr-2012

00:48

Public\Dcom\Oak\Lib\Sh4\Debug

Oleaut32.lib

1,125,456

03-Apr-2012

00:48

Public\Dcom\Oak\Lib\Sh4\Retail

Oleaut32.lib

1,134,364

03-Apr-2012

00:46

Public\Dcom\Oak\Lib\X86\Debug

Oleaut32.lib

1,134,120

03-Apr-2012

00:46

Public\Dcom\Oak\Lib\X86\Retail

References

For more information about the VarUI4FromI4 function, go to the following Microsoft Developer Network (MSDN) website:

General information about the VarUI4FromI4 functionFor more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×