FIX: VarUI4FromI4 function returns an incorrect value if a negative value is passed to the "lIn" parameter of the function in Windows Embedded Compact 7

Article translations Article translations
Article ID: 2811878 - View products that this article applies to.
Expand all | Collapse all

On This Page

Symptoms



Consider the following scenario:
  • You run an application on a Windows Embedded Compact 7-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.

More information

Software update information


Download information

The Windows Embedded Compact 7 Monthly Update (March 2013) is now available from Microsoft. To download this Windows Embedded Compact 7 Monthly Update, go to the following Microsoft Download Center website:

Windows Embedded Compact 7 updates

The kind of processor that each file applies to is visible in the name of each file in the "File information" section.

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

Collapse this imageExpand this image
assets folding start collapsed
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.

Files that are included in this hotfix package

Collapse this tableExpand this table
File nameFile sizeDateTimePath
Oleaut32.lib1,360,48413-Mar-201322:57Public\Dcom\Oak\Lib\Armv5\Checked
Oleaut32.lib1,600,77813-Mar-201322:57Public\Dcom\Oak\Lib\Armv5\Debug
Oleaut32.lib1,474,94613-Mar-201322:57Public\Dcom\Oak\Lib\Armv5\Retail
Oleaut32.lib1,351,84413-Mar-201322:58Public\Dcom\Oak\Lib\Armv6\Checked
Oleaut32.lib1,590,78213-Mar-201322:58Public\Dcom\Oak\Lib\Armv6\Debug
Oleaut32.lib1,466,31413-Mar-201322:58Public\Dcom\Oak\Lib\Armv6\Retail
Oleaut32.lib1,341,03213-Mar-201322:59Public\Dcom\Oak\Lib\Armv7\Checked
Oleaut32.lib1,580,66013-Mar-201322:59Public\Dcom\Oak\Lib\Armv7\Debug
Oleaut32.lib1,455,69013-Mar-201322:59Public\Dcom\Oak\Lib\Armv7\Retail
Oleaut32.lib1,229,24213-Mar-201323:00Public\Dcom\Oak\Lib\Mipsii\Checked
Oleaut32.lib1,482,69213-Mar-201323:00Public\Dcom\Oak\Lib\Mipsii\Debug
Oleaut32.lib1,335,64613-Mar-201323:00Public\Dcom\Oak\Lib\Mipsii\Retail
Oleaut32.lib1,227,21413-Mar-201323:01Public\Dcom\Oak\Lib\Mipsii_fp\Checked
Oleaut32.lib1,487,43613-Mar-201323:01Public\Dcom\Oak\Lib\Mipsii_fp\Debug
Oleaut32.lib1,330,61613-Mar-201323:01Public\Dcom\Oak\Lib\Mipsii_fp\Retail
Oleaut32.lib1,123,68213-Mar-201323:02Public\Dcom\Oak\Lib\Sh4\Checked
Oleaut32.lib1,352,08413-Mar-201323:02Public\Dcom\Oak\Lib\Sh4\Debug
Oleaut32.lib1,237,77413-Mar-201323:02Public\Dcom\Oak\Lib\Sh4\Retail
Oleaut32.lib1,110,22013-Mar-201323:03Public\Dcom\Oak\Lib\X86\Checked
Oleaut32.lib1,186,23813-Mar-201323:03Public\Dcom\Oak\Lib\X86\Debug
Oleaut32.lib1,183,10813-Mar-201323:03Public\Dcom\Oak\Lib\X86\Retail
Collapse this imageExpand this image
assets folding end collapsed

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References

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

General information about the VarUI4FromI4 function
For 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

Properties

Article ID: 2811878 - Last Review: April 9, 2013 - Revision: 1.0
Applies to
  • Windows Embedded Compact 7
Keywords: 
kbfix kbsurveynew kbexpertiseadvanced atdownload KB2811878

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com