Files saved to a mapped network share from Windows XP are corrupted
When you try to save a file from a Microsoft Windows XP-based computer to a network share on a Windows-based server, the saved file may be corrupted. Typically, the saved file contains zeros in the end of the file instead of the expected data.
This problem may occur when you use a program that memory maps a file that is not flagged for write caching, and a set end of file is received from the program. This problem occurs when one of the following conditions is true for the client computer that you use to save the file:
- Microsoft Windows XP Service Pack 2 is installed.
- The hotfix that is described in the following Microsoft Knowledge Base article is installed:811169 Update to increase the performance of the Network Redirector
To work around this problem, disable opportunistic locks on the server where you are saving the file. To do this, set the EnableOplocks registry value to "0" in the following registry subkey:
To do this, follow these steps:
- Click Start, click Run, type regedit, and then press ENTER.
- Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
- If the EnableOplocks value is not present in the right pane, you must create it. To do this, follow these steps:
- Right-click Parameters in the left pane, point to New, and then click DWORD Value.
- Type EnableOplocks to name the value, and then press ENTER.
- Right-click EnableOplocks, and then click Modify.
- In the Value data box, type 0, and then press ENTER.
- Quit Registry Editor.
Hotfix informationA 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 this specific problem. 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.
File informationThe English version of this hotfix 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 tool in Control Panel.
Date Time Version Size File name ------------------------------------------------------------ 23-Nov-2004 23:33 5.1.2600.2569 174,592 Rdbss.sys
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
For additional information, 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
Article ID: 885936 - Last Review: 08/29/2007 14:33:21 - Revision: 4.2
Microsoft Windows XP Professional, Microsoft Windows XP Home Edition, Microsoft Windows XP Professional Service Pack 2 (SP2), Microsoft Windows XP Home Edition Service Pack 2 (SP2), Microsoft Windows XP Service Pack 1
- kbautohotfix kbqfe kbhotfixserver kbwinxpsp2fix kbwinxppresp2fix kbfix kbbug KB885936