[REACTOS] Fix MSVC printf format warnings
[reactos.git] / sdk / lib / rtl / actctx.c
index 8df2af4..62a6af8 100644 (file)
@@ -3022,7 +3022,7 @@ static NTSTATUS get_manifest_in_pe_file( struct actctx_loader* acl, struct assem
 
     if ((!((ULONG_PTR)resname >> 16)))
     {
-        sprintfW(resnameBuf, L"#%u", (ULONG_PTR)resname);
+        sprintfW(resnameBuf, L"#%u", PtrToUlong(resname));
         resptr = resnameBuf;
     }