Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

The GetLastError function returns an incorrect value when the StartDoc function fails in a computer that is running a 64-bit version operating system


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You have a computer that is running a 64-bit version operating system.
  • You run a 32-bit application that calls the StartDoc function to print files by using the Microsoft XPS Document Writer printer.
  • You cancel the print job. Then, then the�StartDoc function fails.
In this scenario, the GetLastError�function incorrectly returns ERROR_INSUFFICIENT_BUFFER (122)�and you receive the following error message:�
The data area passed to a system call is too small.
Note You expect�the�GetLastError�function�to return�ERROR_CANCELLED�(1223). Additionally, you expect to�receive the following error message:�
The operation was canceled by the user.

↑ Back to the top


Resolution

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

There are no prerequisites to apply this hotfix.

Registry information

To use the hotfix in this package, you do not have to make any changes to the registry.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The English (United States) version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Windows Vista and Windows Server 2008 file information notes
Important Windows Vista hotfixes and Windows Server 2008 hotfixes are included in the same packages. However, only "Windows Vista" is listed on the Hotfix Request page. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows Vista" on the page. Always refer to the "Applies To" section in articles to determine the actual operating system that each hotfix applies to.
  • The files that apply to a specific product, SR_Level (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table.
    Collapse this tableExpand this table
    VersionProductSR_LevelService branch
    6.0.600 1 . 22xxxWindows Vista and Windows Server 2008SP1LDR
    6.0.600 2 . 22xxxWindows Vista and Windows Server 2008SP2LDR
  • Service Pack 1 is integrated into the release version of Windows Server 2008. Therefore, RTM milestone files apply only to Windows Vista. RTM milestone files have a 6.0.0000.xxxxxx version number.
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately�in the "Additional file information for Windows Server 2008 and for Windows Vista" section. MUM files and MANIFEST files, and the associated security catalog (.cat) files, are very important to maintaining the state of the updated component. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x64-based versions of Windows Server 2008 SP1, of Windows Server 2008 SP2, of Windows Vista SP1 and of Windows Vista SP2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Gdi32.dll6.0.6001.22687389,63207-May-201016:01x64
Gdi32.dll6.0.6002.22400389,63207-May-201016:49x64
Gdi32.dll6.0.6001.22687303,61607-May-201016:30x86
Gdi32.dll6.0.6002.22400303,61607-May-201016:57x86
For all supported IA-64-based versions of Windows Server 2008 SP1, of Windows Server 2008 SP2, of Windows Vista SP1 and of Windows Vista SP2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Gdi32.dll6.0.6001.22687951,29607-May-201015:34IA-64
Gdi32.dll6.0.6002.22400951,29607-May-201016:35IA-64
Gdi32.dll6.0.6001.22687303,61607-May-201016:30x86
Gdi32.dll6.0.6002.22400303,61607-May-201016:57x86
Windows 7 and Windows Server 2008 R2 file information notes
Important Windows 7 hotfixes and Windows Server 2008 R2 hotfixes are included in the same packages. However, hotfixes on the Hotfix Request page are listed under both operating systems. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows 7/Windows Server 2008 R2" on the page. Always refer to the "Applies To" section in articles to determine the actual operating system that each hotfix applies to.
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately�in the "Additional file information for Windows Server 2008 R2 and for Windows 7" section. MUM and MANIFEST files, and the associated security catalog (.cat) files, are very important to maintaining the state of the updated component. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Gdi32.dll6.1.7600.20709404,48007-May- 201014:30x64
For all supported IA-64-based versions of Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Gdi32.dll6.1.7600.20709969,72807-May- 201011:16IA-64

↑ Back to the top


Status

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

↑ Back to the top


More information

For more information about the StartDoc function, visit the following Microsoft Developer Network (MSDN) Web site: 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

Additional file information

Additional file information for Windows Vista and for Windows Server 2008

Additional files for all supported x64-based versions of Windows Server 2008 SP1, of Windows Server 2008 SP2, of Windows Vista SP1 and of Windows Vista SP2
Collapse this tableExpand this table
File nameAmd64_microsoft-windows-gdi32_31bf3856ad364e35_6.0.6001.22687_none_b5d76e6f1b071f17.manifest
File versionNot Applicable
File size5,986
Date (UTC)07-May-2010
Time (UTC)17:55
File nameAmd64_microsoft-windows-gdi32_31bf3856ad364e35_6.0.6002.22400_none_b80d5f9717f2e079.manifest
File versionNot Applicable
File size5,986
Date (UTC)07-May-2010
Time (UTC)18:36
File nameWow64_microsoft-windows-gdi32_31bf3856ad364e35_6.0.6001.22687_none_c02c18c14f67e112.manifest
File versionNot Applicable
File size6,314
Date (UTC)07-May-2010
Time (UTC)18:24
File nameWow64_microsoft-windows-gdi32_31bf3856ad364e35_6.0.6002.22400_none_c26209e94c53a274.manifest
File versionNot Applicable
File size6,314
Date (UTC)07-May-2010
Time (UTC)19:16
Additional files for all supported IA-64-based versions of Windows Server 2008 SP1, of Windows Server 2008 SP2, of Windows Vista SP1 and of Windows Vista SP2
Collapse this tableExpand this table
File nameIa64_microsoft-windows-gdi32_31bf3856ad364e35_6.0.6001.22687_none_59ba76e162a7b6dd.manifest
File versionNot Applicable
File size5,975
Date (UTC)07-May-2010
Time (UTC)17:13
File nameIa64_microsoft-windows-gdi32_31bf3856ad364e35_6.0.6002.22400_none_5bf068095f93783f.manifest
File versionNot Applicable
File size5,975
Date (UTC)07-May-2010
Time (UTC)18:04
File nameWow64_microsoft-windows-gdi32_31bf3856ad364e35_6.0.6001.22687_none_c02c18c14f67e112.manifest
File versionNot Applicable
File size6,314
Date (UTC)07-May-2010
Time (UTC)18:24
File nameWow64_microsoft-windows-gdi32_31bf3856ad364e35_6.0.6002.22400_none_c26209e94c53a274.manifest
File versionNot Applicable
File size6,314
Date (UTC)07-May-2010
Time (UTC)19:16

Additional file information for Windows 7 and for Windows Server 2008 R2

Additional files for all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
Collapse this tableExpand this table
File nameAmd64_microsoft-windows-gdi32_31bf3856ad364e35_6.1.7600.20709_none_b657bea87bdbaf25.manifest
File versionNot Applicable
File size2,413
Date (UTC) 07-May-2010
Time (UTC) 15:48
File nameWow64_microsoft-windows-gdi32_31bf3856ad364e35_6.1.7600.20709_none_c0ac68fab03c7120.manifest
File versionNot Applicable
File size2,421
Date (UTC) 07-May-2010
Time (UTC)14:44
Additional files for all supported IA-64-based versions of Windows Server 2008 R2
Collapse this tableExpand this table
File nameIa64_microsoft-windows-gdi32_31bf3856ad364e35_6.1.7600.20709_none_5a3ac71ac37c46eb.manifest
File versionNot Applicable
File size2,412
Date (UTC) 07-May-2010
Time (UTC) 15:45
File nameWow64_microsoft-windows-gdi32_31bf3856ad364e35_6.1.7600.20709_none_c0ac68fab03c7120.manifest
File versionNot Applicable
File size2,421
Date (UTC) 07-May-2010
Time (UTC)14:44

↑ Back to the top


Keywords: kbfix, kbautohotfix, kbexpertiseadvanced, kbsurveynew, kbqfe, KB983224

↑ Back to the top

Article Info
Article ID : 983224
Revision : 6
Created on : 6/11/2010
Published on : 6/11/2010
Exists online : False
Views : 750