Replaced VERSION_* calls by exported API equivalents.
diff --git a/dlls/oleaut32/oleaut.c b/dlls/oleaut32/oleaut.c
index 95524c5..55ef444 100644
--- a/dlls/oleaut32/oleaut.c
+++ b/dlls/oleaut32/oleaut.c
@@ -7,7 +7,6 @@
#include "wingdi.h"
#include "winuser.h"
#include "winerror.h"
-#include "winversion.h"
#include "heap.h"
#include "ldt.h"
@@ -105,19 +104,19 @@
UINT WINAPI OaBuildVersion()
{
FIXME("Please report to a.mohr@mailto.de if you get version error messages !\n");
- switch(VERSION_GetVersion())
+ switch(GetVersion() & 0x8000ffff) /* mask off build number */
{
- case WIN31:
+ case 0x80000a03: /* WIN31 */
return MAKELONG(4049, 20); /* from Win32s 1.1e */
- case WIN95:
+ case 0x80000004: /* WIN95 */
return MAKELONG(4265, 30);
- case WIN98:
+ case 0x80000a04: /* WIN98 */
return MAKELONG(4275, 40); /* value of W98 SE; orig. W98 AFAIK has 4265, 30 just as W95 */
- case NT351:
+ case 0x00003303: /* NT351 */
return MAKELONG(4265, 30); /* value borrowed from Win95 */
- case NT40:
+ case 0x00000004: /* NT40 */
return MAKELONG(4122, 20); /* ouch ! Quite old, I guess */
- default:
+ default:
ERR("Version value not known yet. Please investigate it !\n");
return 0x0;
}