Jump to content

98 (FE), 98 SP1, 98 SE + ME SHELL32.DLL fix


MDGx

Recommended Posts

UPDATE 2-28-2007

This is *the* fix we have all been waiting for, folks. ;)

These 2 fixes were created by Anonymous author, who also developed unofficial U891711, Q918547, GDI*.*, KERNEL32.DLL + older SHELL98 fixes.

SHELL98:

http://www.mdgx.com/web.htm#9SU

Restored proper SHELL32.DLL 4.72.3812.634 English.

This SHELL32.DLL version corrects *almost all* EXPLORER.EXE lockups independent of free USER resources percentage:

* Unofficial Windows 98/98 SP1/98 SE Explorer Lockups With Internet Explorer 5.xx/6.xx SHELL32.DLL 4.72.3812.634 Fix:

- SHELL32.DLL Fix [475 KB, English]:

http://www.mdgx.com/files/SHELL98.EXE

- SHELL32.DLL Fix [475 KB, French]:

http://www.mdgx.com/files/SHELL98F.EXE

- SHELL32.DLL Fix [475 KB, Italian]:

http://www.mdgx.com/files/SHELL98I.EXE

This SHELL32.DLL Fix corrects Windows Explorer (and similar tools that use SHELL32.DLL APIs) lockups while trying to copy/create/move/delete/rename large number of files/folders with Internet Explorer 5.xx/6.xx already installed.

BUG: This SHELL32.DLL fix breaks the ability of removing annoying arrows from Desktop shortcut icons!

FIX: See "PATCHED SHELL32.DLL BUG + FIX" for complete details:

http://www.mdgx.com/98-5.htm#PSBF

SHELLME:

http://www.mdgx.com/web.htm#MEU

Same SHELL32.DLL version "rearranged" for easier localization (translation into languages other than English):

* Unofficial Windows ME Explorer Lockups With Internet Explorer 5.xx/6.xx SHELL32.DLL 5.50.4134.120 Fix:

Direct download [843 KB, English]:

http://www.mdgx.com/files/SHELLME.EXE

Direct download [847 KB, Italian]:

http://www.mdgx.com/files/ITSHELME.EXE

This SHELL32.DLL Fix corrects Windows Explorer (and similar tools that use SHELL32.DLL APIs) lockups while trying to copy/create/move/delete/rename large number of files/folders with Internet Explorer 5.xx/6.xx already installed.

How to uninstall this fix [valid for all versions]:

Start button -> Settings -> Control Panel -> Add/Remove Programs -> select "Remove Unofficial Explorer Lockups SHELL32.DLL Fix" -> click Add/Remove button -> reboot.

Author's comments...

I am sending SHELL32.DLL [for Win98/98 SE], which is far more than a mere workaround.

It does not fix the underlying bug in USER.EXE and its WM processing, but is designed to prevent the series of EXPLORER.EXE hangs 100% even if User Resources are low etc.

Although some MSFN members seem to think otherwise, it is not a bug in SHELL32.DLL - it just happens to be the best place to take care of the problem.

As always, this patch comes with the notice "Use at your own risk!"

I am very sorry but I have no time to localize SHELL32.DLL and I also have no plans at this point to port the code from Win98/98 SE SHELL32.DLL 4.72.3812.634 or 635 to WinME 5.50.4134.120 ( --> .134) - the patch is more difficult to implement under WinME.

However, I am sending a "rearranged" SHELL32.DLL 5.50.4134.120 [for WinME], the same "workaround", which should be much easier to localize = translate localizable strings into languages other than English.

Rick Chauvin wrote on Jan 3 2007, 05:46 PM:

I've found interestingly that for whatever reason? the Shell32.dll fix

(SHELL98.EXE) fix for Explorer lockups appears? to be more effective if

the Kernel32.dll fix (Copy2gb.exe) is also installed. To explain more of

what I've noticed is that if only the Shell32.dll is updated the hang

problem is yes much improved (70% successful) over just having the

original one in place - but I still can make it hang although not nearly

as readily as without it that's for sure; however if I have both the

shell32 and Kernel32 dlls updated then in my observances as of yet

anyway, it appears to be even more improved (85% successful) and more

difficult to trigger the hang problem. (In any of my tests when it hangs

the User, System, and GDI resources still show high %) Even though not a

perfect fix, the Shell32.dll workaround is a good one and well worth it,

and many thanks again to anonymous for taking the time to look at this

problem.

Rick,

Many thanks for testing the patch and for your comments.

Is there a sure-fire method that you know and use which triggers the bug successfully in most cases?

It would be very helpful to know.

It may help pinpoint the location of the actual bug in USER.EXE and whatever code in KRNL386.EXE/KERNEL32.DLL USER.EXE calls.

Which versions of KERNEL32.DLL have you been using for these tests?

4.10.2225 (official version) from 320798usa8.exe or an earlier version?

The updated version from COPY2GB.EXE on your machine is 4.10.2226 (unofficial version), correct?

LLXX wrote on Jan 6 2007, 07:39 PM:

First of all, there is nothing wrong with SetFilePointer as it uses

64-bit file pointers; the problem is in _llseek which interprets its

32-bit file pointer as signed irregardless of the desired seek (from the

beginning, from the current position, or from the end), and thus

attempts to move the file pointer past the beginning of the file even

when the desired seek is from the beginning (in which case a negative

offset would be nonsensical). In the unfixed version of _llseek,

SetFilePointer gets passed the sign-extended file pointer, causing *it*

to attempt to seek past the beginning of the file. I have fixed this by

forcing it to zero-extend the file pointer to 64 bits (thus keeping its

sign positive) *only* when a seek from the beginning is specified.

Otherwise the file pointer is signed and can be moved within the file as

usual.

Anonymous seems to have fixed shell32.dll to use SetFilePointer instead,

although this still leaves _llseek flawed. SetFilePointer doesn't need

any changes.

LLXX wrote on Dec 16 2006, 07:33 PM:
Don't know what's with that one. The _llseek doesn't even look like it

was fixed. Edit: This problem doesn't affect explorer.exe in WinME so

maybe that file is just a dummy.

What is her problem??? It is beyond me why she writes such nonsense. Has she not read the official definition on msdn2.microsoft.com and in the 'Win32 SDK Reference Help' (WIN32.HLP)???

KERNEL32.SetFilePointer has two modes: If called with a 32-bit pointer to the high-order DWORD of a 64-bit file pointer, it uses a 64-bit distance to move and uses it correctly.

However, if the pointer to the high-order DWORD is NULL, KERNEL32.SetFilePointer uses a 32-bit distance to move.

This is how KERNEL32._llseek calls KERNEL32.SetFilePointer (if unpatched) - KERNEL32._llseek itself is just a stub to call KERNEL32.SetFilePointer!

This is very different from a (real = non-zero) pointer pointing to a high-order DWORD that is zero.

AFAIK, _llseek and SetFilePointer are flawed in all versions of Windows (Win9x, WinNT, Win2k and WinXP) and probably in Vista, too.

Interestingly, the official description on msdn2.microsoft.com of the SetFilePointer API (and its 32-bit call mechanism!) has changed several times over the years. One may speculate if this was done to disguise the flaw.

P.S.:

The code below is an example of a bug in USER.EXE.

Unfortunately, it is *not* the bug that causes the EXPLORER.EXE hang, but the type of bug I was alluding to in an earlier message.

This bug can cause mayhem when Resources are too low and KERNEL.LOCALALLOC fails.

This type of bug occurs more than once in USER.EXE, but also exists in GDI.EXE, which highlights that coding practices apparently were not at their best when Windows 95 was developed.

push  0x40
push 0x14
call KERNEL.LOCALALLOC
mov cx, ds <-- ds<>0
mov [bp-4], ax
mov [bp-2], ds
or cx, ax <-- always <>0
jnz ...
xor ax, ax
jmp ...

Author's comments...
This is a patched version of:

- SHELL32.DLL 5.50.4134.120 for Windows ME

- SHELL32.DLL 4.72.3812.648 for Windows 98/98 SP1/98 SE

that prevents the EXPLORER hang from occuring when a large number of files is deleted, moved etc.

As I wrote earlier, the problem arises because USER.EXE runs completely out of resources (=0%) right after such a file operation is completed.

However, this is not a bug in USER.EXE. The patch I am providing is not a fix in the true sense, it is more of a workaround and, as always, is provided 'as is' without warranties expressed or implied and with the note 'Use it at your own risk.'

The problem may still occur if a large number of files is deleted, moved etc, while USER resources are low, say below 30%.

I also believe this problem has nothing to do with what versions of SHLWAPI.DLL and/or BROWSEUI.DLL are installed.

It may occur much more frequently with the IE6 SP1 versions because they have much more code, which also takes longer to execute (and may no longer be "optimized" for a Win9x environment).

May I use this opportunity to address a common misconception about GDI and

USER resources in Win9x/ME: The OS and all applications, whether they are

16-bit or 32-bit versions, share the same GDI and USER resources. These

resources are managed by GDI.EXE and USER.EXE, respectively. One of the

two data segments of GDI.EXE is for GDI resources and one of the two data

segments of USER.EXE (plus two extra heaps) is for USER resources. GDI and

USER objects (in these data segments) are accessed through *16-bit-wide*

handles. 32-bit applications (and DLLs) just use zero-extended 32-bit

versions of the same handles. The data segments I am referring to are

32-bit segments with an *initial* size of approx. 2.1 MiByte each. The

16-bit resources are just the lowest 65536 bytes each in these two 32-bit

data segments. 16-bit-wide handles and the 16-bit resource limit cause the

real bottle neck in resources of Win9x. Increasing the default size of the

two 32-bit data segments (which would be possible using hidden system

settings for them) makes very, very little, if any difference.

Please post here your test results.

Thanks.

Enjoy.

Link to comment
Share on other sites


Have you actually tried making a directory with several thousand files in it, and deleting/copying all of them?

(Hint: i386 of XP CD, or extracted contents of all 98SE CAB files :D)

Currently using: BROWSELC.DLL and BROWSEUI.DLL 5.50.4807.2300, no problems. Tested up to 16,384 files (used a splitter to split a 16Kb file into 1-byte files).

Link to comment
Share on other sites

I usually don't quote myself but here it goes :

I have just done this test on my Win ME IE 5.5 SP2 system. It's quite interesting, read on :

Starting with system and user resources at 65% free, GDI at 75% free

I copied one folder containing 56,493 files and 619 folders totaling 1.55 GB (1,668,057,987 bytes) and occupying 2.07 GB (2,223,521,792 bytes) of disk space.

No freeze while copying. Resources didn't change of even 1%.

I then enabled explorer view. GDI fell to 70%.

I then copied over files and folders in several steps into the top folder obtaining 12383 objects (including 447 folders).

GDI resources fell at 64% when I selected all objects.

I dropped them into an empty folder but the window froze (but not the rest of explorer), instead of waiting a bit I killed and restarted the explorer from a batch on my middle mouse hook.

I was back then with resource level I had begun with.

I went again in the folder with the 12383 objects and did reenable explorer view. The resources did not change unlike above when I lost 5% of GDI doing almost the same thing.

I did reselect all 12383 objects and tried to drop again in an empty folder. The window froze again but this time I waited and the files finally copied over. The GDI resources did not change unlike above where they fell by another 4% trying to do that.

Only after everything was copied did explorer attempt to refresh the view. System and User resources fell briefly to O before jumping back to their normal value. GDI resources did not change but the entire explorer was frozen.

So that the "classic" explorer freeze we speak about in this thread appears to take place when explorer updates the view for a large number of files.

I killed and restarted it and was back to normal.

I did reselect the 12383 objects by click and drag and then did a right-click. It took several seconds to diplay the context menu. I then did choose delete.

When the deleting was finished, explorer did refresh the view of the folder and again System and User resources fell briefly to 0 after which the explorer was frozen again. The GDI resources did not visibly change at any point.

I did then empty the recycle bin but without having it opened. During the operation, System and User resources fluctuated by 6-7%.

Explorer did not freeze doing that but I am pretty sure it would have if I would have had the recycle bin opened.

Link to comment
Share on other sites

Have you actually tried making a directory with several thousand files in it, and deleting/copying all of them?

(Hint: i386 of XP CD, or extracted contents of all 98SE CAB files :D)

Currently using: BROWSELC.DLL and BROWSEUI.DLL 5.50.4807.2300, no problems. Tested up to 16,384 files (used a splitter to split a 16Kb file into 1-byte files).

though you need to be using version 5.50.4948.700 of BROWSEUI.DLL instead of 5.50.4807.2300 to have the latest security benefits for the BROWSEUI.DLL file, LLXX. I no longer use 5.50.4807.2300 of BROWSEUI.DLL file because it has security flaws that are fixed in version 5.50.4948.700.

I'll see if I can test out the BROWSE98.EXE patch on my WinME + IE6 SP1 machine, MDGx.

eidenk, you need to be using IE6 SP1, NOT IE 5.5 SP2, in order for the BROWSE98.EXE patch to work.

Edited by erpdude8
Link to comment
Share on other sites

IE6 causes problems when large amounts of files are copied, moved, or deleted.

BROWSEUI.DLL and BROWSELC.DLL have to be replaced with earlier versions from 5.5 to stop this from happening.

I think I found the fix for this large files manipulation bug in Win98 SE with MS IE 6.0 or 6.0 SP1 installed...

MDGx, I hate to be the bearer of bad news but the browselc.dll, browseui.dll & shdocvw.dll files from the BROWSE98.EXE patch for IE6 SP1 did not fix the large files manipulation bug in Win98/ME with IE6/IE6 SP1 as I've just tested on my WinME + IE6 SP1 machine when deleting a large amount of files.

Link to comment
Share on other sites

eidenk, you need to be using IE6 SP1, NOT IE 5.5 SP2, in order for the BROWSE98.EXE patch to work.

Can you do all I have done above without a freeze with the patch ?

I am almost sure you can't.

Edit : I see you have answered above already.

Edited by eidenk
Link to comment
Share on other sites

Explorer hangs after deletion but it recovers without a crash.These files work better than

the orginal because the original files crashed explorer.

My theory is that deleting large files eat resources fix the resource problem and we might

have a solution.

Link to comment
Share on other sites

Have you actually tried making a directory with several thousand files in it, and deleting/copying all of them?

(Hint: i386 of XP CD, or extracted contents of all 98SE CAB files :D)

Currently using: BROWSELC.DLL and BROWSEUI.DLL 5.50.4807.2300, no problems. Tested up to 16,384 files (used a splitter to split a 16Kb file into 1-byte files).

though you need to be using version 5.50.4948.700 of BROWSEUI.DLL instead of 5.50.4807.2300 to have the latest security benefits for the BROWSEUI.DLL file, LLXX. I no longer use 5.50.4807.2300 of BROWSEUI.DLL file because it has security flaws that are fixed in version 5.50.4948.700.

I'll see if I can test out the BROWSE98.EXE patch on my WinME + IE6 SP1 machine, MDGx.

eidenk, you need to be using IE6 SP1, NOT IE 5.5 SP2, in order for the BROWSE98.EXE patch to work.

If you can clearly show what those 'security benefits' are, I might move to the newer version. Otherwise I'll leave things alone. Remember, I haven't been infected with *any* malware since I installed this 98SE over 6 years ago.
Link to comment
Share on other sites

Explorer hangs after deletion but it recovers without a crash.These files work better than

the orginal because the original files crashed explorer.

My theory is that deleting large files eat resources fix the resource problem and we might

have a solution.

Thanks a lot, PROBLEMCHYLD + erpdude8.

So far sounds like you guys are the only ones who actually tested this fix [please correct me if I'm wrong]. ;)

Thanks.

Clarifications:

1. This applies to all explorer "clones" and similar 32-bit file manipulation tools, because as far as I'm aware they all use the shell32 APIs to copy/delete/move files.

2. There may be a difference in behavior if Active Desktop [View as Web Page] is *not* enabled.

If you care to actually do this, please try with Active Desktop enabled.

Then please disable it and test again.

3. The 98 (FE)/98 SP1/98 SE fixed SHELL32.DLL modified to allow proper files > 2 GB manipulation might also make a difference [473 KB, English]:

http://www.mdgx.com/files/SHELL98.EXE

So please install this SHELL32.DLL fix before testing BROWSE98.EXE.

Everybody:

Thanks a lot for the updates, tips etc.

I'm pretty much aware of most of the comments on this subject posted here at MSFN forums.

But I thought just because my computer didn't freeze after copying the entire XP folder [7367 files] to a different partition, maybe, just maybe, we have a solution to this problem.

Unfortunately, doesn't seem to be much improvement over official files from M$. :(

Thanks for trying, anyway.

Best wishes.

Edited by MDGx
Link to comment
Share on other sites

Same results with Active Desktop enable/disable

my resources had drop

System 91%-29%

User 91%-29%

once my resources recovered everything went well just a small hang.

Also i'm using BROWSELC.DLL 6.0.2900.2180 from 98SE2XP and the same problem

above occurs.Since these files doesn't break anything (To My Knowledge) i recommend keeping them.

FYI i have all the latest un/officials patches installed.

And yes my system is tweaked also.

Edited by PROBLEMCHYLD
Link to comment
Share on other sites

Sorry but is it possible that some of you guys don't invest very much time in this problem

or are to lazy to read previous articles about this issue?

I think one can't use IE6 brows* files for Windows Explorer.

AFAIK I only know as solution to use the files LLXX mentioned

Have you actually tried making a directory with several thousand files in it, and deleting/copying all of them?

(Hint: i386 of XP CD, or extracted contents of all 98SE CAB files :D)

Currently using: BROWSELC.DLL and BROWSEUI.DLL 5.50.4807.2300, no problems. Tested up to 16,384 files (used a splitter to split a 16Kb file into 1-byte files).

with this code:

CD %windir%\System

regsvr32 /u /s %windir%\System\browseui.dll

regsvr32 /u /s %windir%\System\browselc.dll

regsvr32 /i /s %windir%\browseui.dll

regsvr32 /i /s %windir%\browselc.dll

Whereas you first have to copy the files mentioned in %windir%.

Read this topic eventually

Edited by winxpi
Link to comment
Share on other sites

Sorry but is it possible that some of you guys don't invest very much time in this problem

or are to lazy to read previous articles about this issue?

I think one can't use IE6 brows* files for Windows Explorer.

AFAIK I only know as solution to use the files LLXX mentioned

Have you actually tried making a directory with several thousand files in it, and deleting/copying all of them?

(Hint: i386 of XP CD, or extracted contents of all 98SE CAB files :D)

Currently using: BROWSELC.DLL and BROWSEUI.DLL 5.50.4807.2300, no problems. Tested up to 16,384 files (used a splitter to split a 16Kb file into 1-byte files).

agreed. use the browselc.dll and browseui.dll files LLXX mentioned in her earlier post when using any release of IE6 under Win98/ME to solve the delete large number of files problem

Link to comment
Share on other sites

Sorry but is it possible that some of you guys don't invest very much time in this problem

or are to lazy to read previous articles about this issue?

I think one can't use IE6 brows* files for Windows Explorer.

AFAIK I only know as solution to use the files LLXX mentioned

Have you actually tried making a directory with several thousand files in it, and deleting/copying all of them?

(Hint: i386 of XP CD, or extracted contents of all 98SE CAB files :D)

Currently using: BROWSELC.DLL and BROWSEUI.DLL 5.50.4807.2300, no problems. Tested up to 16,384 files (used a splitter to split a 16Kb file into 1-byte files).

with this code:
CD %windir%\System

regsvr32 /u /s %windir%\System\browseui.dll

regsvr32 /u /s %windir%\System\browselc.dll

regsvr32 /i /s %windir%\browseui.dll

regsvr32 /i /s %windir%\browselc.dll

Whereas you first have to copy the files mentioned in %windir%.

Read this topic eventually

I have read all topics at MSFN and some I found through Google about this issue.

Also, I'm aware of this problem [and its IE 5.5 files fix] for about 3-4 years, this has been already discussed by others in other forums and thru email exchanges I've had years ago.

Besides using the older IE 5.5 files [which downgrade IE + Windows Explorer interface to flawed (exposed to security vulnerabilites) IE 5.5 files], there is no other fix I'm aware of.

That's why I've been experimenting with these files, in the hope that newer IE 6.0 SP1 files [with less security flaws] would do the trick.

But it looks like the fix is only partial/cosmetic, because one has to Ctrl+Alt+Del to recover the UI [explorer process is killed, and another (new) instance is started].

Just like PROBLEMCHYLD said:

Explorer hangs after deletion but it recovers without a crash. These files work better than

the orginal because the original files crashed explorer.

I have also experienced similar/identical explorer hangs, which can be easily resolved by the "3 finger salute" [Ctrl+Alt+Del].

And the explorer hang did not occur at all times, as it used to with original IE 6.0 SP1 files, only once in a while.

I experimented by copying my entire WinXP folder + all its files [7402 files + 1146 subdirectories] from 1 HD to another and then deleting it.

I have tested this on:

- "virgin install" 98SE without 98SE2ME option 3 installed

- "virgin install" 98SE with 98SE2ME option 3 installed

- "virgin install" 98SE without SHELL98.EXE installed

- "virgin install" 98SE with SHELL98.EXE installed

- "virgin install" 98SE with Recycle Bin enabled

- "virgin install" 98SE with Recycle Bin disabled

- "virgin install" 98SE with Active Desktop [View as Web Page] enabled

- "virgin install" 98SE with Active Desktop [View as Web Page] disabled

- tweaked 98SE without 98SE2ME option 3 installed

- tweaked 98SE with 98SE2ME option 3 installed

- tweaked 98SE without SHELL98.EXE installed

- tweaked 98SE with SHELL98.EXE installed

- tweaked 98SE with Recycle Bin enabled

- tweaked 98SE with Recycle Bin disabled

- tweaked 98SE with Active Desktop [View as Web Page] enabled

- tweaked 98SE with Active Desktop [View as Web Page] disabled

- "virgin install" ME with Recycle Bin enabled

- "virgin install" ME with Recycle Bin disabled

and combinations of the above.

My test results:

98SE:

Explorer hangs less often if Recycle Bin is enabled.

Explorer hangs less often if 98SE2ME option 3 is installed.

Explorer hangs most of the time if Recycle Bin is disabled.

Explorer hangs more often if 98SE2ME option 3 is not installed.

ME:

Explorer hangs less often if Recycle Bin is enabled.

Explorer hangs more often if Recycle Bin is disabled.

98SE + ME:

Active Desktop [View as Web Page] doesn't seem to make a difference.

SHELL98.EXE doesn't seem to make a difference.

The OS seems to recover completely after the hang [after using Ctrl+Alt+Del to kill explorer] in *all* cases.

PROBLEMCHYLD:

In 98SE2XP I will replace BROWSELC.DLL 6.00.2900.2180 [from XP SP2] with older BROWSELC.DLL 6.00.2800.1106 [from XP SP1], because this older one has less unresolved dependencies.

HTH

Edited by MDGx
Link to comment
Share on other sites

Anonymous author of various 98/ME fixes [u891711, Q918547, SHELL98 ETC] sent his thoughts about the 98/98SE Explorer/OS lockups when deleting large files/folders using IE 6.0 SP1 browse*.dll files:

I don't know about patching USER.EXE. I suspect something gets screwed up

when USER.EXE repaints the window with the deleted files and runs out of

resources. It then stays "corrupted" until EXPLORER.EXE terminates

(logging off also works, but causes a permanent resource leak). So, I am

afraid don't know yet what to patch. I noticed another interesting feature

when EXPLORER.EXE uses the IE5.5 versions of BROWSExx.DLL and you may want

to post this on MSFN. Deleting files is much, much faster than with the

IE6SP1 files. There are problems when using two versions of BROWSExx.DLL

side by side, so it is not a good solution.

HTH

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...